summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlprefs.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-12 08:55:55 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-12 20:16:46 -0700
commitc454f6954f0fc5fdd490c50ff13f556660de5ed8 (patch)
treec02f22bf63e17dd8c5200ac7d7e2acfc3b550026 /mobile-widgets/qmlprefs.h
parentf8e9fb72f12990ce5c89de94eeb4effa2757d38b (diff)
downloadsubsurface-c454f6954f0fc5fdd490c50ff13f556660de5ed8.tar.gz
mobile-widgets: make show_developer persistent
Remove developer from qmlprefs and use qPref instead Update qml show_developer is saved on disk, and thus remembered between starts. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlprefs.h')
-rw-r--r--mobile-widgets/qmlprefs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h
index ed38c0530..f1cd41fb4 100644
--- a/mobile-widgets/qmlprefs.h
+++ b/mobile-widgets/qmlprefs.h
@@ -25,10 +25,6 @@ class QMLPrefs : public QObject {
MEMBER m_credentialStatus
WRITE setCredentialStatus
NOTIFY credentialStatusChanged)
- Q_PROPERTY(bool developer
- MEMBER m_developer
- WRITE setDeveloper
- NOTIFY developerChanged)
Q_PROPERTY(int distanceThreshold
MEMBER m_distanceThreshold
WRITE setDistanceThreshold
@@ -68,8 +64,6 @@ public:
qPrefCloudStorage::cloud_status credentialStatus() const;
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
- void setDeveloper(bool value);
-
int distanceThreshold() const;
void setDistanceThreshold(int distance);
@@ -94,7 +88,6 @@ private:
QString m_cloudPin;
QString m_cloudUserName;
qPrefCloudStorage::cloud_status m_credentialStatus;
- bool m_developer;
int m_distanceThreshold;
static QMLPrefs *m_instance;
qPrefCloudStorage::cloud_status m_oldStatus;
@@ -107,7 +100,6 @@ signals:
void cloudUserNameChanged();
void credentialStatusChanged();
void distanceThresholdChanged();
- void developerChanged();
void oldStatusChanged();
void showPinChanged();
void themeChanged();