From 4dd443c059f62f3ad2b5fa84d05a68907ba008f2 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Thu, 14 Nov 2024 11:00:07 +0100 Subject: [PATCH] Add QTP0004 policy setting Also move QTP0001 policy setting to the toplevel CMakeLists.txt file instead of scattering it around. --- CMakeLists.txt | 2 ++ src/CMakeLists.txt | 1 - src/kmediasession/CMakeLists.txt | 1 - src/kmediasession/example-app/CMakeLists.txt | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cee122e..cb13b768 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,8 @@ add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER ) +qt_policy(SET QTP0001 NEW) +qt_policy(SET QTP0004 NEW) ki18n_install(po) install(PROGRAMS org.kde.kasts.desktop DESTINATION ${KDE_INSTALL_APPDIR}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 35397d8b..a73d4283 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -76,7 +76,6 @@ qt_add_resources(kasts "icons" ../icons/kasts-tray-dark.svg ) -qt_policy(SET QTP0001 NEW) qt_add_qml_module(kasts URI org.kde.kasts QML_FILES qml/Main.qml diff --git a/src/kmediasession/CMakeLists.txt b/src/kmediasession/CMakeLists.txt index c6ad7272..90a76931 100644 --- a/src/kmediasession/CMakeLists.txt +++ b/src/kmediasession/CMakeLists.txt @@ -39,7 +39,6 @@ add_library(KMediaSession mpris2/mpris2.cpp ) -qt_policy(SET QTP0001 NEW) qt_add_qml_module(KMediaSession URI org.kde.kmediasession OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/org/kde/kmediasession ) diff --git a/src/kmediasession/example-app/CMakeLists.txt b/src/kmediasession/example-app/CMakeLists.txt index b87baac4..41946b99 100644 --- a/src/kmediasession/example-app/CMakeLists.txt +++ b/src/kmediasession/example-app/CMakeLists.txt @@ -12,7 +12,6 @@ endif() add_executable(kmediasession-example main.cpp) -qt_policy(SET QTP0001 NEW) qt_add_qml_module(kmediasession-example URI org.kde.kmediasession-example QML_FILES qml/Main.qml