mobile: register themeInterface

Register themeInterface with a temporary name, which allows it to be integrated
in subsurfaceTheme (main.qml).

Once all of subsurfaceTheme (main.qml) is available in themeInterface, the name
will be changed.

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-13 14:45:32 +01:00 committed by Dirk Hohndel
parent 9de296f3dd
commit 3c93ee862b

View file

@ -13,6 +13,7 @@
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "mobile-widgets/themeinterface.h"
#include "mobile-widgets/qmlmanager.h"
#include "mobile-widgets/qmlinterface.h"
#include "qt-models/divelistmodel.h"
@ -188,6 +189,9 @@ void register_qml_types(QQmlEngine *engine)
// Register qml interface class
QMLInterface::setup(ct);
themeInterface::instance()->setup();
ct->setContextProperty("ThemeNew", themeInterface::instance());
}
REGISTER_TYPE(QMLManager, "QMLManager");