diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-28 17:11:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-29 12:20:19 -0800 |
commit | beacc00f2df2c76b82f398ff839a18a9b404e1a5 (patch) | |
tree | aff31a274befcad66815e030bea753efc3f18de6 /mobile-widgets/qmlprefs.h | |
parent | b7730d3813bf6c31b87679ca1783c3e4223fe9d9 (diff) | |
download | subsurface-beacc00f2df2c76b82f398ff839a18a9b404e1a5.tar.gz |
mobile-widgets: remove m_cloudCredentialStatus in qmlpref
Remove m_credentialStatus in qmlpref, but let the setter/getter
stay, using qPrefCloudStorage::cloud_verification_status()
instead.
This change ensures that qmlPrefs:credentialStatus() returns the
same as qPrefCloudStorage::cloud_verification_status(), and the
setter/getter of credentialStatus can later be removed safely.
This is a "checkpoint" to ensure everything works without a temporary
credentialStatus. No code part depend on the difference between
qmlPrefs::credentialStatus() and
qPrefCloudStorage::cloud_verification_status(), but the code reference
both.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlprefs.h')
-rw-r--r-- | mobile-widgets/qmlprefs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h index 61e26fd4c..9f5673329 100644 --- a/mobile-widgets/qmlprefs.h +++ b/mobile-widgets/qmlprefs.h @@ -10,7 +10,7 @@ class QMLPrefs : public QObject { Q_OBJECT Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus - MEMBER m_credentialStatus + READ credentialStatus WRITE setCredentialStatus NOTIFY credentialStatusChanged) Q_PROPERTY(bool showPin @@ -37,7 +37,6 @@ public: void setShowPin(bool enable); private: - qPrefCloudStorage::cloud_status m_credentialStatus; static QMLPrefs *m_instance; qPrefCloudStorage::cloud_status m_oldStatus; bool m_showPin; |