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>
This commit is contained in:
jan Iversen 2019-12-29 09:51:00 +01:00 committed by Dirk Hohndel
parent a729d1a576
commit 25e17443f9
2 changed files with 1 additions and 22 deletions

View file

@ -11,8 +11,7 @@
QMLPrefs *QMLPrefs::m_instance = NULL; QMLPrefs *QMLPrefs::m_instance = NULL;
QMLPrefs::QMLPrefs() : QMLPrefs::QMLPrefs() :
m_oldStatus(qPrefCloudStorage::CS_UNKNOWN), m_oldStatus(qPrefCloudStorage::CS_UNKNOWN)
m_showPin(false)
{ {
// This strange construct is needed because QMLEngine calls new and that // This strange construct is needed because QMLEngine calls new and that
// cannot be overwritten // cannot be overwritten
@ -44,14 +43,3 @@ void QMLPrefs::setOldStatus(const qPrefCloudStorage::cloud_status value)
emit oldStatusChanged(); emit oldStatusChanged();
} }
} }
bool QMLPrefs::showPin() const
{
return m_showPin;
}
void QMLPrefs::setShowPin(bool enable)
{
m_showPin = enable;
emit showPinChanged();
}

View file

@ -9,10 +9,6 @@
class QMLPrefs : public QObject { class QMLPrefs : public QObject {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool showPin
MEMBER m_showPin
WRITE setShowPin
NOTIFY showPinChanged)
Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus
MEMBER m_oldStatus MEMBER m_oldStatus
WRITE setOldStatus WRITE setOldStatus
@ -26,17 +22,12 @@ public:
qPrefCloudStorage::cloud_status oldStatus() const; qPrefCloudStorage::cloud_status oldStatus() const;
void setOldStatus(const qPrefCloudStorage::cloud_status value); void setOldStatus(const qPrefCloudStorage::cloud_status value);
bool showPin() const;
void setShowPin(bool enable);
private: private:
static QMLPrefs *m_instance; static QMLPrefs *m_instance;
qPrefCloudStorage::cloud_status m_oldStatus; qPrefCloudStorage::cloud_status m_oldStatus;
bool m_showPin;
signals: signals:
void oldStatusChanged(); void oldStatusChanged();
void showPinChanged();
}; };
#endif #endif