From 2ea7acfb7acfe1b49051386041a41004b29229c4 Mon Sep 17 00:00:00 2001 From: notify Date: Mon, 16 Jan 2023 21:57:05 +0800 Subject: [PATCH] use material style for all platform --- CMakeLists.txt | 1 + src/CMakeLists.txt | 1 + src/main.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0562a733..45f49348 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets Network Multimedia + QuickControls2 ) find_package(OpenSSL) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5ae4bc5..6fdd8a9f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -77,4 +77,5 @@ target_link_libraries(FreeKill PRIVATE Qt6::Widgets Qt6::Network Qt6::Multimedia + Qt6::QuickControls2 ) diff --git a/src/main.cpp b/src/main.cpp index 07865fc2..c54da763 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #if defined(Q_OS_ANDROID) || defined(Q_OS_WASM) static bool copyPath(const QString &srcFilePath, const QString &tgtFilePath) @@ -137,6 +138,7 @@ int main(int argc, char *argv[]) SHOW_SPLASH_MSG("Loading qml files..."); QQmlApplicationEngine *engine = new QQmlApplicationEngine; + QQuickStyle::setStyle("Material"); QmlBackend backend; backend.setEngine(engine);