From bbca8bfa5af40a1d326dd39b2bdce7a204f76701 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Wed, 6 Mar 2024 20:54:41 +0800 Subject: [PATCH] static build: remove unused code. --- src/FluentUI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FluentUI.cpp b/src/FluentUI.cpp index 7b878b03..308d8b7c 100644 --- a/src/FluentUI.cpp +++ b/src/FluentUI.cpp @@ -27,7 +27,6 @@ void FluentUI::registerTypes(QQmlEngine *engine){ void FluentUI::registerTypes(const char *uri){ #if (QT_VERSION < QT_VERSION_CHECK(6, 2, 0)) Q_INIT_RESOURCE(fluentui); -#endif qmlRegisterType(uri,major,minor,"FluWindowLifecycle"); qmlRegisterType(uri,major,minor,"FluQrCodeItem"); qmlRegisterType(uri,major,minor,"FluCaptcha"); @@ -145,6 +144,7 @@ void FluentUI::registerTypes(const char *uri){ qmlRegisterUncreatableMetaObject(FluNetworkType::staticMetaObject, uri,major,minor,"FluNetworkType", "Access to enums & flags only"); qmlRegisterModule(uri,major,minor); +#endif } void FluentUI::initializeEngine(QQmlEngine *engine, const char *uri){ @@ -167,5 +167,4 @@ void FluentUI::initializeEngine(QQmlEngine *engine, const char *uri){ engine->rootContext()->setContextProperty("FluEventBus",eventBus); FluNetwork* network = FluNetwork::getInstance(); engine->rootContext()->setContextProperty("FluNetwork",network); - engine->addImportPath("qrc:/qt/qml"); }