mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: declare cloud_status in qPrefCloudStorage
qml declaration of cloud_status (defined in pref.h) does not belong in qPref.h but in qPrefCloudStorage Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
4d57b52062
commit
684e334fb6
13 changed files with 82 additions and 82 deletions
|
@ -20,7 +20,7 @@ class QMLPrefs : public QObject {
|
|||
MEMBER m_cloudUserName
|
||||
WRITE setCloudUserName
|
||||
NOTIFY cloudUserNameChanged)
|
||||
Q_PROPERTY(qPref::cloud_status credentialStatus
|
||||
Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus
|
||||
MEMBER m_credentialStatus
|
||||
WRITE setCredentialStatus
|
||||
NOTIFY credentialStatusChanged)
|
||||
|
@ -36,7 +36,7 @@ class QMLPrefs : public QObject {
|
|||
MEMBER m_showPin
|
||||
WRITE setShowPin
|
||||
NOTIFY showPinChanged)
|
||||
Q_PROPERTY(qPref::cloud_status oldStatus
|
||||
Q_PROPERTY(qPrefCloudStorage::cloud_status oldStatus
|
||||
MEMBER m_oldStatus
|
||||
WRITE setOldStatus
|
||||
NOTIFY oldStatusChanged)
|
||||
|
@ -64,16 +64,16 @@ public:
|
|||
const QString cloudUserName() const;
|
||||
void setCloudUserName(const QString &cloudUserName);
|
||||
|
||||
qPref::cloud_status credentialStatus() const;
|
||||
void setCredentialStatus(const qPref::cloud_status value);
|
||||
qPrefCloudStorage::cloud_status credentialStatus() const;
|
||||
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
|
||||
|
||||
void setDeveloper(bool value);
|
||||
|
||||
int distanceThreshold() const;
|
||||
void setDistanceThreshold(int distance);
|
||||
|
||||
qPref::cloud_status oldStatus() const;
|
||||
void setOldStatus(const qPref::cloud_status value);
|
||||
qPrefCloudStorage::cloud_status oldStatus() const;
|
||||
void setOldStatus(const qPrefCloudStorage::cloud_status value);
|
||||
|
||||
bool showPin() const;
|
||||
void setShowPin(bool enable);
|
||||
|
@ -92,11 +92,11 @@ private:
|
|||
QString m_cloudPassword;
|
||||
QString m_cloudPin;
|
||||
QString m_cloudUserName;
|
||||
qPref::cloud_status m_credentialStatus;
|
||||
qPrefCloudStorage::cloud_status m_credentialStatus;
|
||||
bool m_developer;
|
||||
int m_distanceThreshold;
|
||||
static QMLPrefs *m_instance;
|
||||
qPref::cloud_status m_oldStatus;
|
||||
qPrefCloudStorage::cloud_status m_oldStatus;
|
||||
bool m_showPin;
|
||||
int m_timeThreshold;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue