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.cpp | |
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.cpp')
-rw-r--r-- | mobile-widgets/qmlprefs.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp index 5220c9c2a..3d5a10f4e 100644 --- a/mobile-widgets/qmlprefs.cpp +++ b/mobile-widgets/qmlprefs.cpp @@ -12,8 +12,7 @@ QMLPrefs *QMLPrefs::m_instance = NULL; QMLPrefs::QMLPrefs() : m_credentialStatus(qPrefCloudStorage::CS_UNKNOWN), m_oldStatus(qPrefCloudStorage::CS_UNKNOWN), - m_showPin(false), - m_timeThreshold(60) + m_showPin(false) { // This strange construct is needed because QMLEngine calls new and that // cannot be overwritten @@ -109,18 +108,6 @@ void QMLPrefs::setShowPin(bool enable) emit showPinChanged(); } -int QMLPrefs::timeThreshold() const -{ - return m_timeThreshold; -} - -void QMLPrefs::setTimeThreshold(int time) -{ - m_timeThreshold = time; - GpsLocation::instance()->setGpsTimeThreshold(m_timeThreshold * 60); - emit timeThresholdChanged(); -} - const QString QMLPrefs::theme() const { return qPrefDisplay::theme(); |