diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-29 12:53:01 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-30 09:16:55 -0700 |
commit | 2e07e9345f7cdc2f0edd849b68f43bdce0e6b8b3 (patch) | |
tree | ea6f8daed16dfbfe32bf2de00910f4b9cc33cc25 /mobile-widgets/qmlmanager.h | |
parent | 4cd7767bec39e236483ed560f44b8eb54dab76c9 (diff) | |
download | subsurface-2e07e9345f7cdc2f0edd849b68f43bdce0e6b8b3.tar.gz |
mobile/dive-list: add indicator that dive list is being processed
This should deal with the rather confusing 'No dive in dive list' shown
while loading and processing the dive list.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 5765667d0..29f7109c6 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -58,6 +58,7 @@ class QMLManager : public QObject { Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus MEMBER m_oldStatus WRITE setOldStatus NOTIFY oldStatusChanged) Q_PROPERTY(QString undoText READ getUndoText NOTIFY undoTextChanged) // this is a read-only property Q_PROPERTY(QString redoText READ getRedoText NOTIFY redoTextChanged) // this is a read-only property + Q_PROPERTY(bool diveListProcessing MEMBER m_diveListProcessing WRITE setDiveListProcessing NOTIFY diveListProcessingChanged) public: QMLManager(); @@ -152,6 +153,8 @@ public: void setShowNonDiveComputers(bool show); + void setDiveListProcessing(bool value); + QStringList suitList() const; QStringList buddyList() const; QStringList divemasterList() const; @@ -250,6 +253,7 @@ private: bool m_locationServiceEnabled; bool m_locationServiceAvailable; bool m_verboseEnabled; + bool m_diveListProcessing; GpsLocation *locationProvider; bool m_loadFromCloud; static QMLManager *m_instance; @@ -288,6 +292,7 @@ signals: void locationServiceEnabledChanged(); void locationServiceAvailableChanged(); void verboseEnabledChanged(); + void diveListProcessingChanged(); void logTextChanged(); void loadFromCloudChanged(); void startPageTextChanged(); |