https://bugs.kde.org/show_bug.cgi?id=489729

--- Comment #3 from David Edmundson <k...@davidedmundson.co.uk> ---
Git commit 52e94bf0a39b6e6aeaadefc89d4b4dbd37547be0 by David Edmundson.
Committed on 27/01/2025 at 10:20.
Pushed by davidedmundson into branch 'master'.

kcms/access use working validator on spinboxes

The KCM is full of many Spinboxes with suffixes.
A function removes the suffix when extracting the value, however by
default all spinboxes have an IntValidator on them.

The value extraction is not run before the validation, meaning the
IntValidator always fails.

The end result is that typing in the spinbox does not work correctly
with no change signal ever emitted.

We cannot remove the IntValidator as no other code checks that values
are in bounds.

This patch adds a custom validator that strips additional text before
using the int validation code.

M  +21   -0    kcms/access/kcmaccess.cpp
M  +6    -5    kcms/access/ui/ActivationShortcuts.qml
M  +11   -2    kcms/access/ui/KeyboardFilters.qml
M  +16   -1    kcms/access/ui/MouseNavigation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/52e94bf0a39b6e6aeaadefc89d4b4dbd37547be0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to