diff options
| author | 2019-11-19 19:54:15 +0100 | |
|---|---|---|
| committer | 2019-12-03 21:30:39 -0800 | |
| commit | d88ccf32219e5a1321e0b84c5b21746badfa6157 (patch) | |
| tree | b213d6ae4b09f4fba6077790f62ec75b51c7c33e | |
| parent | 27ce89a6e505f663af8664c011e74521099a9530 (diff) | |
| download | subsurface-d88ccf32219e5a1321e0b84c5b21746badfa6157.tar.gz | |
startup mobile: make ExportType enum available to QML
Register ExportType before starting QML.
Signed-off-by: Jan Iversen <jan@casacondor.com>
| -rw-r--r-- | subsurface-helper.cpp | 2 |
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); |