summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlprefs.cpp
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.cpp
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.cpp')
-rw-r--r--mobile-widgets/qmlprefs.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
index 99bde2426..4e8cc8726 100644
--- a/mobile-widgets/qmlprefs.cpp
+++ b/mobile-widgets/qmlprefs.cpp
@@ -11,7 +11,6 @@ QMLPrefs *QMLPrefs::m_instance = NULL;
QMLPrefs::QMLPrefs() :
m_credentialStatus(qPrefCloudStorage::CS_UNKNOWN),
- m_developer(false),
m_distanceThreshold(1000),
m_oldStatus(qPrefCloudStorage::CS_UNKNOWN),
m_showPin(false),
@@ -87,12 +86,6 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
}
}
-void QMLPrefs::setDeveloper(bool value)
-{
- m_developer = value;
- emit developerChanged();
-}
-
int QMLPrefs::distanceThreshold() const
{
return m_distanceThreshold;