diff options
author | jan Iversen <jani@apache.org> | 2018-09-02 16:22:16 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-11 17:25:00 -0700 |
commit | 684e334fb6098e604a91d140c1e2ea0883dff081 (patch) | |
tree | 99dd5050bb53385125aa5fa6dc69514acbc2b40e /mobile-widgets/qmlprefs.h | |
parent | 4d57b52062ab902dee8d82e453eda586ce78ab3e (diff) | |
download | subsurface-684e334fb6098e604a91d140c1e2ea0883dff081.tar.gz |
core: declare cloud_status in qPrefCloudStorage
qml declaration of cloud_status (defined in pref.h) does not
belong in qPref.h but in qPrefCloudStorage
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qmlprefs.h')
-rw-r--r-- | mobile-widgets/qmlprefs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h index b628ef3fe..1676c2e64 100644 --- a/mobile-widgets/qmlprefs.h +++ b/mobile-widgets/qmlprefs.h @@ -20,7 +20,7 @@ class QMLPrefs : public QObject { MEMBER m_cloudUserName WRITE setCloudUserName NOTIFY cloudUserNameChanged) - Q_PROPERTY(qPref::cloud_status credentialStatus + Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus MEMBER m_credentialStatus WRITE setCredentialStatus NOTIFY credentialStatusChanged) @@ -36,7 +36,7 @@ class QMLPrefs : public QObject { MEMBER m_showPin WRITE setShowPin NOTIFY showPinChanged) - Q_PROPERTY(qPref::cloud_status oldStatus + Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus MEMBER m_oldStatus WRITE setOldStatus NOTIFY oldStatusChanged) @@ -64,16 +64,16 @@ public: const QString cloudUserName() const; void setCloudUserName(const QString &cloudUserName); - qPref::cloud_status credentialStatus() const; - void setCredentialStatus(const qPref::cloud_status value); + qPrefCloudStorage::cloud_status credentialStatus() const; + void setCredentialStatus(const qPrefCloudStorage::cloud_status value); void setDeveloper(bool value); int distanceThreshold() const; void setDistanceThreshold(int distance); - qPref::cloud_status oldStatus() const; - void setOldStatus(const qPref::cloud_status value); + qPrefCloudStorage::cloud_status oldStatus() const; + void setOldStatus(const qPrefCloudStorage::cloud_status value); bool showPin() const; void setShowPin(bool enable); @@ -92,11 +92,11 @@ private: QString m_cloudPassword; QString m_cloudPin; QString m_cloudUserName; - qPref::cloud_status m_credentialStatus; + qPrefCloudStorage::cloud_status m_credentialStatus; bool m_developer; int m_distanceThreshold; static QMLPrefs *m_instance; - qPref::cloud_status m_oldStatus; + qPrefCloudStorage::cloud_status m_oldStatus; bool m_showPin; int m_timeThreshold; |