Skip to content

kcms/mouse: Make QML more declarative

Jakob Petsovits requested to merge work/jpetso/mouse-kcm-declarative into master

A lot of that imperative logic can be replaced with bindings, which simplifies the code quite a bit. The "Reset" button is now also properly disabled once settings are reverted to the last saved state.

The C++ changes primarily ensure that change notification signals are emitted when the value changes. On the QML side, the "deviceless" variant is not needed anymore and the regular main.qml covers both Wayland as well as "deviceless" X11 with visibility conditions for form controls.


Includes MR !2067 (merged) which should be reviewed first so GitLab stops showing it in the diff. Part of the larger effort outlined in #117.

My favorite part:

git show --stat
(...)
12 files changed, 202 insertions(+), 513 deletions(-)
Edited by Jakob Petsovits

Merge request reports