Add QTP0004 policy setting

Also move QTP0001 policy setting to the toplevel CMakeLists.txt file
instead of scattering it around.
This commit is contained in:
Bart De Vries 2024-11-14 11:00:07 +01:00
parent aa9bbc1bdb
commit 4dd443c059
No known key found for this signature in database
GPG Key ID: 7285665DA6E2D42B
4 changed files with 2 additions and 3 deletions

View File

@ -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})

View File

@ -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

View File

@ -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
)

View File

@ -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