From 6ce40c64b1859d10f1358b5bb9baadc3b954e99d Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Wed, 15 Oct 2025 01:46:49 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5integration Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: https://github.com/linuxdeepin/qt5integration/pull/284 --- CMakeLists.txt | 3 +++ platformthemeplugin/qdeepintheme.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 91cc9da..5c5312a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,9 @@ option(ENABLE_COV "Enable code coverage" OFF) if(PROJECT_VERSION_MAJOR EQUAL 6) set(VERSION_SUFFIX 6) find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core) + if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10) + find_package(Qt6 COMPONENTS CorePrivate GuiPrivate WidgetsPrivate REQUIRED) + endif() else() set(VERSION_SUFFIX) find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core) diff --git a/platformthemeplugin/qdeepintheme.h b/platformthemeplugin/qdeepintheme.h index 9c6fcc4..34b6553 100644 --- a/platformthemeplugin/qdeepintheme.h +++ b/platformthemeplugin/qdeepintheme.h @@ -7,7 +7,11 @@ #include +#if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0) +#include +#else #include +#endif #include #include