mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
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:
parent
51e4d4562a
commit
929e71e6b0
20 changed files with 123 additions and 86 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue