aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-28 10:26:45 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-31 14:48:14 +0100
commit572fc470718e4a11d5df60b37e7a2a91639285c7 (patch)
tree012052da9ce773463550741c33e33a00626c3434 /mobile-widgets/qmlmanager.h
parentfed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0 (diff)
downloadsubsurface-572fc470718e4a11d5df60b37e7a2a91639285c7.tar.gz
mobile cleanup: unduplicate code and do not loop over dives (2)
See e6e1473e6. Exact same commit but here for the list of buddies. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index d0f1c09a2..c8c6a9906 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -37,7 +37,7 @@ class QMLManager : public QObject {
Q_PROPERTY(int updateSelectedDive MEMBER m_updateSelectedDive WRITE setUpdateSelectedDive NOTIFY updateSelectedDiveChanged)
Q_PROPERTY(int selectedDiveTimestamp MEMBER m_selectedDiveTimestamp WRITE setSelectedDiveTimestamp NOTIFY selectedDiveTimestampChanged)
Q_PROPERTY(QStringList suitList READ suitList NOTIFY suitListChanged)
- Q_PROPERTY(QStringList buddyInit READ buddyInit CONSTANT)
+ Q_PROPERTY(QStringList buddyList READ buddyList NOTIFY buddyListChanged)
Q_PROPERTY(QStringList divemasterInit READ divemasterInit CONSTANT)
Q_PROPERTY(QStringList cylinderInit READ cylinderInit CONSTANT)
Q_PROPERTY(bool showPin MEMBER m_showPin WRITE setShowPin NOTIFY showPinChanged)
@@ -132,7 +132,7 @@ public:
DiveListSortModel *dlSortModel;
QStringList suitList() const;
- QStringList buddyInit() const;
+ QStringList buddyList() const;
QStringList divemasterInit() const;
QStringList cylinderInit() const;
bool showPin() const;
@@ -271,6 +271,7 @@ signals:
void developerChanged();
void btEnabledChanged();
void suitListChanged();
+ void buddyListChanged();
};
#endif