Skip to content

馃崚kcm: validate percent input correctly

Harald Sitter requested to merge work/cherry-pick-ea1553c7 into Plasma/6.2

previously we'd implicitly use the IntValidator but that would never consider the input acceptable because it gets the text input, not the value input (by design how the spinbox works -- textfield is the contentitem and the validator actually validates the textfield).

instead use a bespoke percent validator to validate the percent string input to be well formed and then forward a sanitized int to the qintvalidator base

BUG: 420416

(cherry picked from commit ea1553c7)

Co-authored-by: Harald Sitter sitter@kde.org

Merge request reports

Loading