mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4cd7767bec
commit
2e07e9345f
3 changed files with 24 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue