From 51bc41b5179ff12bf2767cd568dbf8266b72ca7e Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 12 Sep 2018 13:40:59 +0200 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mobile-widgets/qmlmanager.cpp') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 36108d848..c2b993b0c 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()->setTimeThreshold(qPrefLocationService::time_threshold() / 60); } QMLManager::~QMLManager() @@ -423,11 +422,6 @@ QMLManager *QMLManager::instance() return m_instance; } -void QMLManager::savePreferences() -{ - qPrefLocationService::set_time_threshold(QMLPrefs::instance()->timeThreshold() * 60); -} - #define CLOUDURL QString(prefs.cloud_base_url) #define CLOUDREDIRECTURL CLOUDURL + "/cgi-bin/redirect.pl" -- cgit v1.2.3-70-g09d2