mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets: remove cloudPin from qmlprefs
cloudPin is no longer used, remove it. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e3a9166f46
commit
3cca6b9e9b
2 changed files with 0 additions and 20 deletions
|
@ -33,16 +33,6 @@ QMLPrefs *QMLPrefs::instance()
|
||||||
|
|
||||||
|
|
||||||
/*** public functions ***/
|
/*** public functions ***/
|
||||||
const QString QMLPrefs::cloudPin() const
|
|
||||||
{
|
|
||||||
return m_cloudPin;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QMLPrefs::setCloudPin(const QString &cloudPin)
|
|
||||||
{
|
|
||||||
m_cloudPin = cloudPin;
|
|
||||||
emit cloudPinChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
qPrefCloudStorage::cloud_status QMLPrefs::credentialStatus() const
|
qPrefCloudStorage::cloud_status QMLPrefs::credentialStatus() const
|
||||||
{
|
{
|
||||||
|
@ -58,7 +48,6 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
|
||||||
set_filename(NOCLOUD_LOCALSTORAGE);
|
set_filename(NOCLOUD_LOCALSTORAGE);
|
||||||
qPrefCloudStorage::set_cloud_storage_email(NULL);
|
qPrefCloudStorage::set_cloud_storage_email(NULL);
|
||||||
qPrefCloudStorage::set_cloud_storage_password(NULL);
|
qPrefCloudStorage::set_cloud_storage_password(NULL);
|
||||||
setCloudPin(NULL);
|
|
||||||
if (qPrefUnits::unit_system() == "imperial")
|
if (qPrefUnits::unit_system() == "imperial")
|
||||||
prefs.units = IMPERIAL_units;
|
prefs.units = IMPERIAL_units;
|
||||||
else if (qPrefUnits::unit_system() == "metric")
|
else if (qPrefUnits::unit_system() == "metric")
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
class QMLPrefs : public QObject {
|
class QMLPrefs : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(QString cloudPin
|
|
||||||
MEMBER m_cloudPin
|
|
||||||
WRITE setCloudPin
|
|
||||||
NOTIFY cloudPinChanged)
|
|
||||||
Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus
|
Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus
|
||||||
MEMBER m_credentialStatus
|
MEMBER m_credentialStatus
|
||||||
WRITE setCredentialStatus
|
WRITE setCredentialStatus
|
||||||
|
@ -31,9 +27,6 @@ public:
|
||||||
|
|
||||||
static QMLPrefs *instance();
|
static QMLPrefs *instance();
|
||||||
|
|
||||||
const QString cloudPin() const;
|
|
||||||
void setCloudPin(const QString &cloudPin);
|
|
||||||
|
|
||||||
qPrefCloudStorage::cloud_status credentialStatus() const;
|
qPrefCloudStorage::cloud_status credentialStatus() const;
|
||||||
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
|
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
|
||||||
|
|
||||||
|
@ -44,14 +37,12 @@ public:
|
||||||
void setShowPin(bool enable);
|
void setShowPin(bool enable);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_cloudPin;
|
|
||||||
qPrefCloudStorage::cloud_status m_credentialStatus;
|
qPrefCloudStorage::cloud_status m_credentialStatus;
|
||||||
static QMLPrefs *m_instance;
|
static QMLPrefs *m_instance;
|
||||||
qPrefCloudStorage::cloud_status m_oldStatus;
|
qPrefCloudStorage::cloud_status m_oldStatus;
|
||||||
bool m_showPin;
|
bool m_showPin;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void cloudPinChanged();
|
|
||||||
void credentialStatusChanged();
|
void credentialStatusChanged();
|
||||||
void oldStatusChanged();
|
void oldStatusChanged();
|
||||||
void showPinChanged();
|
void showPinChanged();
|
||||||
|
|
Loading…
Add table
Reference in a new issue