diff --git a/main.cpp b/main.cpp index 5384421..779443b 100644 --- a/main.cpp +++ b/main.cpp @@ -1,61 +1,64 @@ #include #include #include #include #ifdef STATIC_KIRIGAMI #include "3rdparty/kirigami/src/kirigamiplugin.h" #endif #ifdef Q_OS_ANDROID #include +#include #include #else #include +#include #endif #include "mauikit/src/mauikit.h" #include "src/buho.h" #include "src/documenthandler.h" #include "src/linker.h" int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #ifdef Q_OS_ANDROID QGuiApplication app(argc, argv); QIcon::setThemeName("Luv"); - QQuickStyle::setStyle("material"); + QtWebView::initialize(); #else QApplication app(argc, argv); + QtWebEngine::initialize(); #endif #ifdef STATIC_KIRIGAMI KirigamiPlugin::getInstance().registerTypes(); #endif #ifdef MAUI_APP MauiKit::getInstance().registerTypes(); #endif Buho owl; QQmlApplicationEngine engine; auto context = engine.rootContext(); context->setContextProperty("owl", &owl); Linker linker; auto tag = owl.getTagging(); context->setContextProperty("linker", &linker); context->setContextProperty("tag", tag); qmlRegisterType("org.buho.editor", 1, 0, "DocumentHandler"); engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); if (engine.rootObjects().isEmpty()) return -1; return app.exec(); }