mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
504e912512
commit
51bc41b517
5 changed files with 3 additions and 34 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue