254690e899
Summary: QSpinBox can't handle plural suffixes. Something previously done by KIntSpinBox. Using setSuffix(ki18np("pixel", "pixels")).toString() does nothing, as at the time of conversion we don't know which one to use. This patch uses KPluralHandlingSpinBox and correct ki18np. Note, "new" dependency was already linked implicitly in other kwin, but we need to add it for this KCM. Test Plan: Opened KCM (in English) set counter to 1 pixel and 2 pixels. No longer had a big warning. Also appropriate number of s's appeared. Reviewers: #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3222
26 lines
796 B
CMake
26 lines
796 B
CMake
#######################################
|
|
# Config
|
|
set(kwin_mousemark_config_SRCS mousemark_config.cpp)
|
|
ki18n_wrap_ui(kwin_mousemark_config_SRCS mousemark_config.ui)
|
|
qt5_add_dbus_interface(kwin_mousemark_config_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
|
kconfig_add_kcfg_files(kwin_mousemark_config_SRCS mousemarkconfig.kcfgc)
|
|
|
|
add_library(kwin_mousemark_config MODULE ${kwin_mousemark_config_SRCS})
|
|
|
|
target_link_libraries(kwin_mousemark_config
|
|
KF5::ConfigWidgets
|
|
KF5::GlobalAccel
|
|
KF5::I18n
|
|
KF5::Service
|
|
KF5::TextWidgets
|
|
KF5::XmlGui
|
|
)
|
|
|
|
kcoreaddons_desktop_to_json(kwin_mousemark_config mousemark_config.desktop SERVICE_TYPES kcmodule.desktop)
|
|
|
|
install(
|
|
TARGETS
|
|
kwin_mousemark_config
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/kwin/effects/configs
|
|
)
|