mobile-widgets: make show_developer persistent

Remove developer from qmlprefs and use qPref instead
Update qml

show_developer is saved on disk, and thus remembered between starts.

Signed-off-by: Jan Iversen <jani@apache.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2018-09-12 08:55:55 +02:00 committed by Dirk Hohndel
parent f8e9fb72f1
commit c454f6954f
4 changed files with 3 additions and 18 deletions

View file

@ -11,7 +11,6 @@ QMLPrefs *QMLPrefs::m_instance = NULL;
QMLPrefs::QMLPrefs() :
m_credentialStatus(qPrefCloudStorage::CS_UNKNOWN),
m_developer(false),
m_distanceThreshold(1000),
m_oldStatus(qPrefCloudStorage::CS_UNKNOWN),
m_showPin(false),
@ -87,12 +86,6 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
}
}
void QMLPrefs::setDeveloper(bool value)
{
m_developer = value;
emit developerChanged();
}
int QMLPrefs::distanceThreshold() const
{
return m_distanceThreshold;