Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Handle using KF6 KColorScheme when in qt6.
Wolthera van Hövell tot Westerfliera11ced92a8d2
diff --git a/qmlmodules/components/CMakeLists.txt b/qmlmodules/components/CMakeLists.txtindex 34aa9508df..bf5509c5dc 100644--- a/qmlmodules/components/CMakeLists.txt+++ b/qmlmodules/components/CMakeLists.txt@@ -88,14 +88,24 @@ ecm_target_qml_sources(kritaqmlcomponents SOURCESqml/AngleSelector.qml)--target_link_libraries(kritaqmlcomponents- PRIVATE+if (QT_MAJOR_VERSION STREQUAL "6")+ target_link_libraries(kritaqmlcomponents+ PRIVATEkritauiQt::QmlQt::QuickQt::QuickControls2-)+ KF${KF_MAJOR}::ColorScheme+ )+else ()+ target_link_libraries(kritaqmlcomponents+ PRIVATE+ kritaui+ Qt::Qml+ Qt::Quick+ Qt::QuickControls2+ )+endif ()ecm_finalize_qml_module(kritaqmlcomponents DESTINATION ${KDE_INSTALL_QMLDIR})diff --git a/qmlmodules/components/KisTheme.h b/qmlmodules/components/KisTheme.hindex 37c2223c87..9768ec7f0a 100644--- a/qmlmodules/components/KisTheme.h+++ b/qmlmodules/components/KisTheme.h@@ -10,8 +10,12 @@#include <QQmlEngine>#include <lager/cursor.hpp>#include <lager/extra/qt.hpp>-#include <kcolorscheme.h>+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))+#include <kcolorscheme.h>+#else+#include <KColorScheme>+#endifclass KisThemeColorGroup : public QObject{Q_OBJECT