kwin/effects/mousemark
David Edmundson 254690e899 Correctly set i18n suffix in mousemark spinbox.
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
2016-11-02 13:07:39 +00:00
..
CMakeLists.txt Correctly set i18n suffix in mousemark spinbox. 2016-11-02 13:07:39 +00:00
mousemark.cpp Port to CMake AUTOMOC 2016-02-01 21:05:36 +01:00
mousemark.h MouseMark effect supports QPainter compositor 2014-01-09 13:29:40 +01:00
mousemark.kcfg
mousemark_config.cpp Correctly set i18n suffix in mousemark spinbox. 2016-11-02 13:07:39 +00:00
mousemark_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2015-04-07 13:20:00 +00:00
mousemark_config.h
mousemark_config.ui Correctly set i18n suffix in mousemark spinbox. 2016-11-02 13:07:39 +00:00
mousemarkconfig.kcfgc