Skip to content

kcms/access use working validator on spinboxes

David Edmundson requested to merge work/d_ed/access into master

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.

CCBUG: 489729

Edited by David Edmundson

Merge request reports

Loading