Commit dfff6ced authored by camilo higuita's avatar camilo higuita
Browse files

pass engine to mauikit

parent c6c27091
......@@ -78,14 +78,6 @@ int Q_DECL_EXPORT main(int argc, char *argv[])
about.setupCommandLine(&parser);
about.processCommandLine(&parser);
#ifdef STATIC_KIRIGAMI
KirigamiPlugin::getInstance().registerTypes();
#endif
#ifdef STATIC_MAUIKIT
MauiKit::getInstance().registerTypes();
#endif
Buho buho;
QQmlApplicationEngine engine;
......@@ -94,6 +86,14 @@ int Q_DECL_EXPORT main(int argc, char *argv[])
qmlRegisterType<Notes>(BUHO_URI, 1, 0, "Notes");
qmlRegisterType<Books>(BUHO_URI, 1, 0, "Books");
#ifdef STATIC_KIRIGAMI
KirigamiPlugin::getInstance().registerTypes();
#endif
#ifdef STATIC_MAUIKIT
MauiKit::getInstance().registerTypes(&engine);
#endif
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment