mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e700920e8e
commit
79b04a2f01
3 changed files with 0 additions and 15 deletions
|
@ -214,8 +214,6 @@ Kirigami.Page {
|
||||||
|
|
||||||
onCurrentItemChanged: {
|
onCurrentItemChanged: {
|
||||||
if (currentItem && currentItem.modelData) {
|
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
|
// make sure the core data structures reflect that this dive is selected
|
||||||
manager.selectDive(currentItem.modelData.id)
|
manager.selectDive(currentItem.modelData.id)
|
||||||
// update the map to show the highlighted flag and center on it
|
// update the map to show the highlighted flag and center on it
|
||||||
|
|
|
@ -149,7 +149,6 @@ void QMLManager::btRescan()
|
||||||
|
|
||||||
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
m_verboseEnabled(false),
|
m_verboseEnabled(false),
|
||||||
m_selectedDiveTimestamp(0),
|
|
||||||
alreadySaving(false),
|
alreadySaving(false),
|
||||||
m_pluggedInDeviceName(""),
|
m_pluggedInDeviceName(""),
|
||||||
m_showNonDiveComputers(false),
|
m_showNonDiveComputers(false),
|
||||||
|
@ -1711,12 +1710,6 @@ void QMLManager::setNotificationText(QString text)
|
||||||
emit notificationTextChanged();
|
emit notificationTextChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QMLManager::setSelectedDiveTimestamp(int when)
|
|
||||||
{
|
|
||||||
m_selectedDiveTimestamp = when;
|
|
||||||
emit selectedDiveTimestampChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
qreal QMLManager::lastDevicePixelRatio()
|
qreal QMLManager::lastDevicePixelRatio()
|
||||||
{
|
{
|
||||||
return m_lastDevicePixelRatio;
|
return m_lastDevicePixelRatio;
|
||||||
|
|
|
@ -32,7 +32,6 @@ class QMLManager : public QObject {
|
||||||
Q_PROPERTY(QString startPageText MEMBER m_startPageText WRITE setStartPageText NOTIFY startPageTextChanged)
|
Q_PROPERTY(QString startPageText MEMBER m_startPageText WRITE setStartPageText NOTIFY startPageTextChanged)
|
||||||
Q_PROPERTY(bool verboseEnabled MEMBER m_verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged)
|
Q_PROPERTY(bool verboseEnabled MEMBER m_verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged)
|
||||||
Q_PROPERTY(QString notificationText MEMBER m_notificationText WRITE setNotificationText NOTIFY notificationTextChanged)
|
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 suitList READ suitList NOTIFY suitListChanged)
|
||||||
Q_PROPERTY(QStringList buddyList READ buddyList NOTIFY buddyListChanged)
|
Q_PROPERTY(QStringList buddyList READ buddyList NOTIFY buddyListChanged)
|
||||||
Q_PROPERTY(QStringList divemasterList READ divemasterList NOTIFY divemasterListChanged)
|
Q_PROPERTY(QStringList divemasterList READ divemasterList NOTIFY divemasterListChanged)
|
||||||
|
@ -136,9 +135,6 @@ public:
|
||||||
QString notificationText() const;
|
QString notificationText() const;
|
||||||
void setNotificationText(QString text);
|
void setNotificationText(QString text);
|
||||||
|
|
||||||
int selectedDiveTimestamp() const;
|
|
||||||
void setSelectedDiveTimestamp(int when);
|
|
||||||
|
|
||||||
QString progressMessage() const;
|
QString progressMessage() const;
|
||||||
void setProgressMessage(QString text);
|
void setProgressMessage(QString text);
|
||||||
|
|
||||||
|
@ -243,7 +239,6 @@ private:
|
||||||
bool m_loadFromCloud;
|
bool m_loadFromCloud;
|
||||||
static QMLManager *m_instance;
|
static QMLManager *m_instance;
|
||||||
QString m_notificationText;
|
QString m_notificationText;
|
||||||
int m_selectedDiveTimestamp;
|
|
||||||
qreal m_lastDevicePixelRatio;
|
qreal m_lastDevicePixelRatio;
|
||||||
QElapsedTimer timer;
|
QElapsedTimer timer;
|
||||||
bool alreadySaving;
|
bool alreadySaving;
|
||||||
|
@ -282,7 +277,6 @@ signals:
|
||||||
void loadFromCloudChanged();
|
void loadFromCloudChanged();
|
||||||
void startPageTextChanged();
|
void startPageTextChanged();
|
||||||
void notificationTextChanged();
|
void notificationTextChanged();
|
||||||
void selectedDiveTimestampChanged();
|
|
||||||
void sendScreenChanged(QScreen *screen);
|
void sendScreenChanged(QScreen *screen);
|
||||||
void progressMessageChanged();
|
void progressMessageChanged();
|
||||||
void btEnabledChanged();
|
void btEnabledChanged();
|
||||||
|
|
Loading…
Add table
Reference in a new issue