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