summaryrefslogtreecommitdiffstats
path: root/core/settings
diff options
context:
space:
mode:
Diffstat (limited to 'core/settings')
-rw-r--r--core/settings/qPref.cpp2
-rw-r--r--core/settings/qPref.h9
-rw-r--r--core/settings/qPrefCloudStorage.h9
3 files changed, 10 insertions, 10 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp
index 61561a188..2a455b4fd 100644
--- a/core/settings/qPref.cpp
+++ b/core/settings/qPref.cpp
@@ -64,7 +64,7 @@ void qPref::registerQML(QQmlEngine *engine)
}
// Register special types
- qmlRegisterUncreatableType<qPref>("org.subsurfacedivelog.mobile",1,0,"CloudStatus","Enum is not a type");
+ qmlRegisterUncreatableType<qPrefCloudStorage>("org.subsurfacedivelog.mobile",1,0,"CloudStatus","Enum is not a type");
qRegisterMetaType<deco_mode>();
qRegisterMetaType<def_file_behavior>();
qRegisterMetaType<taxonomy_category>();
diff --git a/core/settings/qPref.h b/core/settings/qPref.h
index e42e2b96b..f13a29274 100644
--- a/core/settings/qPref.h
+++ b/core/settings/qPref.h
@@ -39,15 +39,6 @@ public:
void registerQML(QQmlEngine *engine);
public:
- enum cloud_status {
- CS_UNKNOWN,
- CS_INCORRECT_USER_PASSWD,
- CS_NEED_TO_VERIFY,
- CS_VERIFIED,
- CS_NOCLOUD
- };
- Q_ENUM(cloud_status);
-
static const QString canonical_version() { return QString(CANONICAL_VERSION_STRING); }
static const QString mobile_version() { return QString(MOBILE_VERSION_STRING); }
diff --git a/core/settings/qPrefCloudStorage.h b/core/settings/qPrefCloudStorage.h
index 0cb4cc03c..631eaa670 100644
--- a/core/settings/qPrefCloudStorage.h
+++ b/core/settings/qPrefCloudStorage.h
@@ -27,6 +27,15 @@ public:
static void sync() { loadSync(true); }
public:
+ enum cloud_status {
+ CS_UNKNOWN,
+ CS_INCORRECT_USER_PASSWD,
+ CS_NEED_TO_VERIFY,
+ CS_VERIFIED,
+ CS_NOCLOUD
+ };
+ Q_ENUM(cloud_status);
+
static QString cloud_base_url() { return prefs.cloud_base_url; }
static QString cloud_git_url() { return prefs.cloud_git_url; }
static QString cloud_storage_email() { return prefs.cloud_storage_email; }