summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-06-12 10:34:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-15 14:12:14 -0700
commit62ca5e90e13d65235d3cd53feffd0cb62cfbac43 (patch)
tree845a0051f89d9c6848821f7c8c0c9ab12a87b890 /mobile-widgets
parentd0e9f626245e7833847ad25ae3b97c5ab87caccb (diff)
downloadsubsurface-62ca5e90e13d65235d3cd53feffd0cb62cfbac43.tar.gz
mobile: move NOCLOUD_LOCALSTORAGE from qmlmanager.cpp to .h
Make NOCLOUD_LOCALSTORAGE public for other qml functions Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp2
-rw-r--r--mobile-widgets/qmlmanager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 08fa3060a..94e15ef66 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -39,8 +39,6 @@ QMLManager *QMLManager::m_instance = NULL;
#define RED_FONT QLatin1Literal("<font color=\"red\">")
#define END_FONT QLatin1Literal("</font>")
-#define NOCLOUD_LOCALSTORAGE format_string("%s/cloudstorage/localrepo[master]", system_default_directory())
-
extern "C" void showErrorFromC(char *buf)
{
QString error(buf);
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 8ec0afb44..6de279b4b 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -17,6 +17,8 @@
#include "qt-models/completionmodels.h"
#include "qt-models/divelocationmodel.h"
+#define NOCLOUD_LOCALSTORAGE format_string("%s/cloudstorage/localrepo[master]", system_default_directory())
+
class QMLManager : public QObject {
Q_OBJECT
Q_ENUMS(cloud_status_qml)