summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlprefs.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-12 09:12:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-12 20:17:39 -0700
commitbaa828e900b2dc1c647c62483a13737baadfa76c (patch)
treeb622cd0aa0f974427b60658d006d565cc0559f80 /mobile-widgets/qmlprefs.cpp
parentc454f6954f0fc5fdd490c50ff13f556660de5ed8 (diff)
downloadsubsurface-baa828e900b2dc1c647c62483a13737baadfa76c.tar.gz
mobile-widgets: move distanceThreshold handling to qPref
Remove distanceThreshold from qmlprefs and use qPref instead update qml no user experience change 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.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
index 4e8cc8726..5220c9c2a 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_distanceThreshold(1000),
m_oldStatus(qPrefCloudStorage::CS_UNKNOWN),
m_showPin(false),
m_timeThreshold(60)
@@ -86,17 +85,6 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
}
}
-int QMLPrefs::distanceThreshold() const
-{
- return m_distanceThreshold;
-}
-
-void QMLPrefs::setDistanceThreshold(int distance)
-{
- m_distanceThreshold = distance;
- emit distanceThresholdChanged();
-}
-
qPrefCloudStorage::cloud_status QMLPrefs::oldStatus() const
{
return m_oldStatus;