From c77ab1212bd9a356ddeb03af6bb17c0bdf8ed955 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周一, 11 12月 2023 15:56:59 +0800
Subject: [PATCH] tweak quick API

---
 examples/qml/main.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp
index 4dbda50..1898550 100644
--- a/examples/qml/main.cpp
+++ b/examples/qml/main.cpp
@@ -1,3 +1,4 @@
+#include <QWKQuick/qwkquickglobal.h>
 #include <QGuiApplication>
 #include <QQmlApplicationEngine>
 
@@ -13,6 +14,7 @@
     QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
     QGuiApplication application(argc, argv);
     QQmlApplicationEngine engine;
+    QWK::registerTypes(&engine);
     engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
     return application.exec();
 }
\ No newline at end of file

--
Gitblit v1.9.1