kwin/kcmkwin
Ismael Asensio db7fb26eed [kcm/kwinrules] Fix size properties not being stored
Summary:
Use `QSize`/`QPoint` to handle and store coordinate values (size and position)

Previously, the rules model stored the "coordinate" type properties as a
`QString` with format `x, y`.

This fails when setting the properties to the config schema, as it requires
a proper `QPoint` or `QSize` value, specially the latter which can't be
convert from such a string.

BUG: 421055
FIXED-IN: 5.19.0

Test Plan:
- Add a new rule and set its position and size properties
- Hitting apply stores the right values in `~\.config\kwinrulesrc`
- Close the kcm and reopen, the values are loaded
- Property detection still works for size and position

Please note that there is a pre-existing bug of some position/sizes not being
applied to the windows in some cases, when using `Apply Initially`.
Better try using the `Force` policy.

Reviewers: ngraham, #kwin, #plasma, zzag

Reviewed By: #kwin, #plasma, zzag

Subscribers: zzag, ltoscano, yurchor, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D29764
2020-05-15 19:45:11 +02:00
..
common [kcmkwin] Make dialog non blocking 2020-04-07 09:27:31 +01:00
kwincompositing GIT_SILENT Fix scripty failing 2020-04-21 23:11:15 +02:00
kwindecoration Merge branch 'Plasma/5.18' 2020-05-06 15:15:42 +02:00
kwindesktop Merge branch 'Plasma/5.18' 2020-03-29 18:17:54 -06:00
kwineffects SVN_SILENT made messages (.desktop file) - always resolve ours 2020-05-12 06:33:43 +02:00
kwinoptions Revert "Improve partial maximization strings" 2020-05-14 12:46:40 +03:00
kwinrules [kcm/kwinrules] Fix size properties not being stored 2020-05-15 19:45:11 +02:00
kwinscreenedges Fix compile with strict iterator 2020-05-01 13:02:39 +02:00
kwinscripts kcmkwin/scripts: make default button work 2020-03-13 11:08:56 +01:00
kwintabbox KCM KWinTabbox disable widget if property is immutable. 2020-04-14 14:08:36 +02:00
CMakeLists.txt Cleanup style in CMakeLists.txt files 2019-09-17 16:03:05 +03:00