Widgets: add callback arg names to some callback

The ones that have a comment already.

Tests that the name is consistent accross the styles.
This commit is contained in:
Olivier Goffart 2024-11-03 21:16:30 +01:00
parent 51e4d4562a
commit 929e71e6b0
20 changed files with 123 additions and 86 deletions

View file

@ -15,7 +15,7 @@ export component SpinBoxBase {
out property <bool> has-focus <=> text-input.has-focus;
in-out property <int> value: minimum;
callback edited(/* value */ int);
callback edited(value: int);
public function update-value(value: int) {
if root.value == value || (value >= root.minimum && value <= root.maximum) {
@ -43,7 +43,7 @@ export component SpinBoxBase {
function set-text-to-value() {
text-input.text = root.value;
}
TouchArea {
enabled: root.enabled;