mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use kirigami built in static mode
Now kirigami needs to be built with a C++ plugin. In cases of mobile operating systems such as iOS (and in a lesser measuse, Android) having a proper plugin loaded at runtime may be difficult, so statically link it together with all of its qml files compiled as a qresource inside the static library. Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
545c60a517
commit
24718adfc3
6 changed files with 40 additions and 50 deletions
|
@ -21,6 +21,9 @@
|
|||
#include "qt-models/gpslistmodel.h"
|
||||
#include "mobile-widgets/qmlprofile.h"
|
||||
|
||||
#define KIRIGAMI_BUILD_TYPE_STATIC
|
||||
#include "mobile-widgets/qml/kirigami/src/kirigamiplugin.h"
|
||||
|
||||
QObject *qqWindowObject = NULL;
|
||||
|
||||
void init_ui()
|
||||
|
@ -32,7 +35,9 @@ void run_ui()
|
|||
{
|
||||
qmlRegisterType<QMLManager>("org.subsurfacedivelog.mobile", 1, 0, "QMLManager");
|
||||
qmlRegisterType<QMLProfile>("org.subsurfacedivelog.mobile", 1, 0, "QMLProfile");
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
KirigamiPlugin::getInstance().registerTypes();
|
||||
#if __APPLE__
|
||||
// when running the QML UI on a Mac the deployment of the QML Components seems
|
||||
// to fail and the search path for the components is rather odd - simply the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue