summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlprefs.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-28 17:30:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 12:20:19 -0800
commit783332561a433e8ff8be8b0bceb25a051967d3cf (patch)
tree54789d3fb2fe49aa9af081c54413d07834f78015 /mobile-widgets/qmlprefs.cpp
parentbeacc00f2df2c76b82f398ff839a18a9b404e1a5 (diff)
downloadsubsurface-783332561a433e8ff8be8b0bceb25a051967d3cf.tar.gz
mobile-widgets: credentialStatus() -> cloud_verification_status()
Replace all credentialStatus() with cloud_verification_status() Where both prefs.credentialStatus and PrefCloudStorage.cloud_verification_status are being set, remove prefs.credentialStatus. These replacements are valid since credentialStatus() is a simple envelope over cloud_verification_status(). Also remove qmlPrefs::credentialStatus() from qmlPrefs (mostly to ensure no replacements was forgotten). Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlprefs.cpp')
-rw-r--r--mobile-widgets/qmlprefs.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
index c48327faa..59bd9767b 100644
--- a/mobile-widgets/qmlprefs.cpp
+++ b/mobile-widgets/qmlprefs.cpp
@@ -33,11 +33,6 @@ QMLPrefs *QMLPrefs::instance()
/*** public functions ***/
-qPrefCloudStorage::cloud_status QMLPrefs::credentialStatus() const
-{
- return (qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status();
-}
-
void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
{
if ((qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status() != value) {
@@ -53,7 +48,6 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
prefs.units = SI_units;
}
qPrefCloudStorage::set_cloud_verification_status(value);
- emit credentialStatusChanged();
}
}