diff options
author | jan Iversen <jani@apache.org> | 2018-09-12 13:40:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-12 20:18:32 -0700 |
commit | 51bc41b5179ff12bf2767cd568dbf8266b72ca7e (patch) | |
tree | 1243626fa9ec7a1b7046625e3f24f837441785d6 /mobile-widgets/qmlprefs.h | |
parent | 504e9125126cb24467ee8e038a461d731672c4b9 (diff) | |
download | subsurface-51bc41b5179ff12bf2767cd568dbf8266b72ca7e.tar.gz |
mobile-widgets: remove setTimeThreshold from system
Use qPrefLocationService::set_time_threshold and remove from
qmlprefs.cpp and qmlmanager.cpp
Remark: mobile UI shows time in minutes, while it is stored (and calculated)
in seconds. Therefore a /60 when reading and *60 when setting.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qmlprefs.h')
-rw-r--r-- | mobile-widgets/qmlprefs.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h index 4127d9b79..f1d6dea50 100644 --- a/mobile-widgets/qmlprefs.h +++ b/mobile-widgets/qmlprefs.h @@ -37,11 +37,6 @@ class QMLPrefs : public QObject { READ theme WRITE setTheme NOTIFY themeChanged) - Q_PROPERTY(int timeThreshold - MEMBER m_timeThreshold - WRITE setTimeThreshold - NOTIFY timeThresholdChanged) - public: QMLPrefs(); ~QMLPrefs(); @@ -66,9 +61,6 @@ public: bool showPin() const; void setShowPin(bool enable); - int timeThreshold() const; - void setTimeThreshold(int time); - const QString theme() const; void setTheme(QString theme); @@ -84,7 +76,6 @@ private: static QMLPrefs *m_instance; qPrefCloudStorage::cloud_status m_oldStatus; bool m_showPin; - int m_timeThreshold; signals: void cloudPasswordChanged(); @@ -94,7 +85,6 @@ signals: void oldStatusChanged(); void showPinChanged(); void themeChanged(); - void timeThresholdChanged(); }; #endif |