diff options
author | jan Iversen <jani@apache.org> | 2018-09-12 09:12:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-12 20:17:39 -0700 |
commit | baa828e900b2dc1c647c62483a13737baadfa76c (patch) | |
tree | b622cd0aa0f974427b60658d006d565cc0559f80 /mobile-widgets/qmlmanager.cpp | |
parent | c454f6954f0fc5fdd490c50ff13f556660de5ed8 (diff) | |
download | subsurface-baa828e900b2dc1c647c62483a13737baadfa76c.tar.gz |
mobile-widgets: move distanceThreshold handling to qPref
Remove distanceThreshold from qmlprefs and use qPref instead
update qml
no user experience change
Signed-off-by: Jan Iversen <jani@apache.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 2a3c426ed..36108d848 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -406,7 +406,6 @@ void QMLManager::finishSetup() appendTextToLog(tr("no cloud credentials")); setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT); } - QMLPrefs::instance()->setDistanceThreshold(qPrefLocationService::distance_threshold()); QMLPrefs::instance()->setTimeThreshold(qPrefLocationService::time_threshold() / 60); } @@ -427,7 +426,6 @@ QMLManager *QMLManager::instance() void QMLManager::savePreferences() { qPrefLocationService::set_time_threshold(QMLPrefs::instance()->timeThreshold() * 60); - qPrefLocationService::set_distance_threshold(QMLPrefs::instance()->distanceThreshold()); } #define CLOUDURL QString(prefs.cloud_base_url) |