509daa60a1
Port the KCM to use KConfigXT which means that the complete custom code for loading, saving and setting to defaults can be dropped. Also in the effect in brings some advantages as we basically get compile time checks whether the accessed config is named correctly. The saved values for translucency are now UInts in [0,100] instead of doubles in [0.0,1.0], so an update script is needed. REVIEW: 106310
29 lines
837 B
CMake
29 lines
837 B
CMake
#######################################
|
|
# Effect
|
|
|
|
# Source files
|
|
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
|
translucency/translucency.cpp
|
|
)
|
|
|
|
kde4_add_kcfg_files(kwin4_effect_builtins_sources translucency/translucencyconfig.kcfgc)
|
|
|
|
# .desktop files
|
|
install( FILES
|
|
translucency/translucency.desktop
|
|
DESTINATION ${SERVICES_INSTALL_DIR}/kwin )
|
|
|
|
#######################################
|
|
# Config
|
|
|
|
# Source files
|
|
set( kwin4_effect_builtins_config_sources ${kwin4_effect_builtins_config_sources}
|
|
translucency/translucency_config.cpp
|
|
translucency/translucency_config.ui
|
|
)
|
|
kde4_add_kcfg_files(kwin4_effect_builtins_config_sources translucency/translucencyconfig.kcfgc)
|
|
|
|
# .desktop files
|
|
install( FILES
|
|
translucency/translucency_config.desktop
|
|
DESTINATION ${SERVICES_INSTALL_DIR}/kwin )
|