diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-29 09:51:00 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-29 12:20:19 -0800 |
commit | 25e17443f9b8986dd2106975d7d2d307e506e447 (patch) | |
tree | b4dab63de976810243a6cf6d7ce7175348ed99f1 | |
parent | a729d1a576b283483177f884175c938d6d1345f7 (diff) | |
download | subsurface-25e17443f9b8986dd2106975d7d2d307e506e447.tar.gz |
mobile-widgets: remove showPin from qmlprefs
showPin is no longer used so remove it.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qmlprefs.cpp | 14 | ||||
-rw-r--r-- | mobile-widgets/qmlprefs.h | 9 |
2 files changed, 1 insertions, 22 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp index fa3fb6dcb..3c2da7f73 100644 --- a/mobile-widgets/qmlprefs.cpp +++ b/mobile-widgets/qmlprefs.cpp @@ -11,8 +11,7 @@ QMLPrefs *QMLPrefs::m_instance = NULL; QMLPrefs::QMLPrefs() : - m_oldStatus(qPrefCloudStorage::CS_UNKNOWN), - m_showPin(false) + m_oldStatus(qPrefCloudStorage::CS_UNKNOWN) { // This strange construct is needed because QMLEngine calls new and that // cannot be overwritten @@ -44,14 +43,3 @@ void QMLPrefs::setOldStatus(const qPrefCloudStorage::cloud_status value) emit oldStatusChanged(); } } - -bool QMLPrefs::showPin() const -{ - return m_showPin; -} - -void QMLPrefs::setShowPin(bool enable) -{ - m_showPin = enable; - emit showPinChanged(); -} diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h index 9fc538017..99ba038e2 100644 --- a/mobile-widgets/qmlprefs.h +++ b/mobile-widgets/qmlprefs.h @@ -9,10 +9,6 @@ class QMLPrefs : public QObject { Q_OBJECT - Q_PROPERTY(bool showPin - MEMBER m_showPin - WRITE setShowPin - NOTIFY showPinChanged) Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus MEMBER m_oldStatus WRITE setOldStatus @@ -26,17 +22,12 @@ public: qPrefCloudStorage::cloud_status oldStatus() const; void setOldStatus(const qPrefCloudStorage::cloud_status value); - bool showPin() const; - void setShowPin(bool enable); - private: static QMLPrefs *m_instance; qPrefCloudStorage::cloud_status m_oldStatus; - bool m_showPin; signals: void oldStatusChanged(); - void showPinChanged(); }; #endif |