mobile: register QML interface

call setup with registration of QML interface class

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-04 09:47:10 +01:00 committed by Dirk Hohndel
parent fdc2fd35bf
commit 9105a4c39b

View file

@ -14,6 +14,7 @@
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "mobile-widgets/qmlmanager.h"
#include "mobile-widgets/qmlinterface.h"
#include "qt-models/divelistmodel.h"
#include "qt-models/gpslistmodel.h"
#include "qt-models/messagehandlermodel.h"
@ -188,6 +189,9 @@ void register_qml_types(QQmlEngine *engine)
QQmlContext *ct = engine->rootContext();
ct->setContextProperty("Planner", plannerShared::instance());
// Register qml interface class
QMLInterface::setup(ct);
}
REGISTER_TYPE(QMLManager, "QMLManager");