aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-27 14:43:19 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-28 08:34:56 -0800
commit3cca6b9e9b82e0cc5ac0be28b690645069862fdf (patch)
treeefe0a8921ef8eb22a27747961932b4ec032cdf09
parente3a9166f461372f29abca99f044a41664ce5dc52 (diff)
downloadsubsurface-3cca6b9e9b82e0cc5ac0be28b690645069862fdf.tar.gz
mobile-widgets: remove cloudPin from qmlprefs
cloudPin is no longer used, remove it. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qmlprefs.cpp11
-rw-r--r--mobile-widgets/qmlprefs.h9
2 files changed, 0 insertions, 20 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
index eaeab9ceb..f88c9a732 100644
--- a/mobile-widgets/qmlprefs.cpp
+++ b/mobile-widgets/qmlprefs.cpp
@@ -33,16 +33,6 @@ QMLPrefs *QMLPrefs::instance()
/*** public functions ***/
-const QString QMLPrefs::cloudPin() const
-{
- return m_cloudPin;
-}
-
-void QMLPrefs::setCloudPin(const QString &cloudPin)
-{
- m_cloudPin = cloudPin;
- emit cloudPinChanged();
-}
qPrefCloudStorage::cloud_status QMLPrefs::credentialStatus() const
{
@@ -58,7 +48,6 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
set_filename(NOCLOUD_LOCALSTORAGE);
qPrefCloudStorage::set_cloud_storage_email(NULL);
qPrefCloudStorage::set_cloud_storage_password(NULL);
- setCloudPin(NULL);
if (qPrefUnits::unit_system() == "imperial")
prefs.units = IMPERIAL_units;
else if (qPrefUnits::unit_system() == "metric")
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h
index 67b086c95..61e26fd4c 100644
--- a/mobile-widgets/qmlprefs.h
+++ b/mobile-widgets/qmlprefs.h
@@ -9,10 +9,6 @@
class QMLPrefs : public QObject {
Q_OBJECT
- Q_PROPERTY(QString cloudPin
- MEMBER m_cloudPin
- WRITE setCloudPin
- NOTIFY cloudPinChanged)
Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus
MEMBER m_credentialStatus
WRITE setCredentialStatus
@@ -31,9 +27,6 @@ public:
static QMLPrefs *instance();
- const QString cloudPin() const;
- void setCloudPin(const QString &cloudPin);
-
qPrefCloudStorage::cloud_status credentialStatus() const;
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
@@ -44,14 +37,12 @@ public:
void setShowPin(bool enable);
private:
- QString m_cloudPin;
qPrefCloudStorage::cloud_status m_credentialStatus;
static QMLPrefs *m_instance;
qPrefCloudStorage::cloud_status m_oldStatus;
bool m_showPin;
signals:
- void cloudPinChanged();
void credentialStatusChanged();
void oldStatusChanged();
void showPinChanged();