mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
startup mobile: make ExportType enum available to QML
Register ExportType before starting QML. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
27ce89a6e5
commit
d88ccf3221
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,8 @@ void run_ui()
|
||||||
ctxt->setContextProperty("connectionListModel", &connectionListModel);
|
ctxt->setContextProperty("connectionListModel", &connectionListModel);
|
||||||
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
|
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
|
||||||
|
|
||||||
|
qmlRegisterUncreatableType<QMLManager>("org.subsurfacedivelog.mobile",1,0,"ExportType","Enum is not a type");
|
||||||
|
|
||||||
#ifdef SUBSURFACE_MOBILE_DESKTOP
|
#ifdef SUBSURFACE_MOBILE_DESKTOP
|
||||||
if (testqml) {
|
if (testqml) {
|
||||||
QString fileLoad(testqml);
|
QString fileLoad(testqml);
|
||||||
|
|
Loading…
Reference in a new issue