summaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-11-19 19:54:15 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-03 21:30:39 -0800
commitd88ccf32219e5a1321e0b84c5b21746badfa6157 (patch)
treeb213d6ae4b09f4fba6077790f62ec75b51c7c33e /subsurface-helper.cpp
parent27ce89a6e505f663af8664c011e74521099a9530 (diff)
downloadsubsurface-d88ccf32219e5a1321e0b84c5b21746badfa6157.tar.gz
startup mobile: make ExportType enum available to QML
Register ExportType before starting QML. Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index b3266b656..2faedc30a 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -111,6 +111,8 @@ void run_ui()
ctxt->setContextProperty("connectionListModel", &connectionListModel);
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
+ qmlRegisterUncreatableType<QMLManager>("org.subsurfacedivelog.mobile",1,0,"ExportType","Enum is not a type");
+
#ifdef SUBSURFACE_MOBILE_DESKTOP
if (testqml) {
QString fileLoad(testqml);