930c2d69a7
Summary: Use a kcfg file to specify virtual desktops settings saved to kwinrc. Test Plan: kcmshell5 kcm_kwin_virtualdesktops Change something, check apply buttons works appropriately Save the settings and relaunch the kcm, the new settings are taken loaded correctly Reviewers: #kwin, ervin Reviewed By: ervin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D25871
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
include(ECMQMLModules)
|
|
ecm_find_qmlmodule(org.kde.plasma.core 2.0)
|
|
|
|
# KI18N Translation Domain for this library.
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwin_virtualdesktops\")
|
|
|
|
########### next target ###############
|
|
|
|
set(kcm_kwin_virtualdesktops_PART_SRCS
|
|
../../virtualdesktopsdbustypes.cpp
|
|
animationsmodel.cpp
|
|
desktopsmodel.cpp
|
|
virtualdesktops.cpp
|
|
)
|
|
|
|
kconfig_add_kcfg_files(kcm_kwin_virtualdesktops_PART_SRCS virtualdesktopssettings.kcfgc GENERATE_MOC)
|
|
|
|
add_library(kcm_kwin_virtualdesktops MODULE ${kcm_kwin_virtualdesktops_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_kwin_virtualdesktops
|
|
Qt5::DBus
|
|
|
|
KF5::I18n
|
|
KF5::KCMUtils
|
|
KF5::QuickAddons
|
|
KF5::XmlGui
|
|
|
|
kcmkwincommon
|
|
)
|
|
|
|
kcoreaddons_desktop_to_json(kcm_kwin_virtualdesktops "kcm_kwin_virtualdesktops.desktop")
|
|
|
|
########### install files ###############
|
|
|
|
install(FILES virtualdesktopssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
|
|
install(TARGETS kcm_kwin_virtualdesktops DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
|
|
install(FILES kcm_kwin_virtualdesktops.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
|
|
kpackage_install_package(package kcm_kwin_virtualdesktops kcms)
|