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:
parent
9de296f3dd
commit
3c93ee862b
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user