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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue