From 62ca5e90e13d65235d3cd53feffd0cb62cfbac43 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 12 Jun 2018 10:34:33 +0200 Subject: mobile: move NOCLOUD_LOCALSTORAGE from qmlmanager.cpp to .h Make NOCLOUD_LOCALSTORAGE public for other qml functions Signed-off-by: Jan Iversen --- mobile-widgets/qmlmanager.cpp | 2 -- mobile-widgets/qmlmanager.h | 2 ++ 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("") #define END_FONT QLatin1Literal("") -#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) -- cgit v1.2.3-70-g09d2