diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-01-10 08:41:16 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | 79b04a2f01c96ceb1afea73f252e69a6c6d4d033 (patch) | |
tree | a9aed8f13b94faf5fea7aefd09ac00911468f86e /mobile-widgets | |
parent | e700920e8efd23e2101194145d00c9f282a41e6c (diff) | |
download | subsurface-79b04a2f01c96ceb1afea73f252e69a6c6d4d033.tar.gz |
mobile: remove selectedDiveTimeStamp logic
Since the selection is now handled in the core this is not needed anymore.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 2 | ||||
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 7 | ||||
-rw-r--r-- | mobile-widgets/qmlmanager.h | 6 |
3 files changed, 0 insertions, 15 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 8419b5d09..5d52b89ca 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -214,8 +214,6 @@ Kirigami.Page { onCurrentItemChanged: { if (currentItem && currentItem.modelData) { - // this is used when loading dives to maintain relative position in the dive list - manager.selectedDiveTimestamp = currentItem.modelData.date // make sure the core data structures reflect that this dive is selected manager.selectDive(currentItem.modelData.id) // update the map to show the highlighted flag and center on it diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 92dbfc4ff..b7ed5a359 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -149,7 +149,6 @@ void QMLManager::btRescan() QMLManager::QMLManager() : m_locationServiceEnabled(false), m_verboseEnabled(false), - m_selectedDiveTimestamp(0), alreadySaving(false), m_pluggedInDeviceName(""), m_showNonDiveComputers(false), @@ -1711,12 +1710,6 @@ void QMLManager::setNotificationText(QString text) emit notificationTextChanged(); } -void QMLManager::setSelectedDiveTimestamp(int when) -{ - m_selectedDiveTimestamp = when; - emit selectedDiveTimestampChanged(); -} - qreal QMLManager::lastDevicePixelRatio() { return m_lastDevicePixelRatio; diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index d497280bd..3919eec35 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -32,7 +32,6 @@ class QMLManager : public QObject { Q_PROPERTY(QString startPageText MEMBER m_startPageText WRITE setStartPageText NOTIFY startPageTextChanged) Q_PROPERTY(bool verboseEnabled MEMBER m_verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged) Q_PROPERTY(QString notificationText MEMBER m_notificationText WRITE setNotificationText NOTIFY notificationTextChanged) - Q_PROPERTY(int selectedDiveTimestamp MEMBER m_selectedDiveTimestamp WRITE setSelectedDiveTimestamp NOTIFY selectedDiveTimestampChanged) Q_PROPERTY(QStringList suitList READ suitList NOTIFY suitListChanged) Q_PROPERTY(QStringList buddyList READ buddyList NOTIFY buddyListChanged) Q_PROPERTY(QStringList divemasterList READ divemasterList NOTIFY divemasterListChanged) @@ -136,9 +135,6 @@ public: QString notificationText() const; void setNotificationText(QString text); - int selectedDiveTimestamp() const; - void setSelectedDiveTimestamp(int when); - QString progressMessage() const; void setProgressMessage(QString text); @@ -243,7 +239,6 @@ private: bool m_loadFromCloud; static QMLManager *m_instance; QString m_notificationText; - int m_selectedDiveTimestamp; qreal m_lastDevicePixelRatio; QElapsedTimer timer; bool alreadySaving; @@ -282,7 +277,6 @@ signals: void loadFromCloudChanged(); void startPageTextChanged(); void notificationTextChanged(); - void selectedDiveTimestampChanged(); void sendScreenChanged(QScreen *screen); void progressMessageChanged(); void btEnabledChanged(); |