summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/DiveDetails.qml2
-rw-r--r--mobile-widgets/qmlmanager.cpp7
-rw-r--r--mobile-widgets/qmlmanager.h6
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();