mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue