mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
Support for code blocks and signal call
This commit is contained in:
parent
f2df9293a9
commit
95b671c97c
11 changed files with 240 additions and 84 deletions
|
@ -13,7 +13,7 @@ component TwoRectangle := Rectangle {
|
|||
my_area := TouchArea {
|
||||
width: 25;
|
||||
height: 25;
|
||||
clicked => { clicked }
|
||||
clicked => { root.clicked() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ component ButtonRectangle := Rectangle {
|
|||
TouchArea {
|
||||
width: 100;
|
||||
height: 75;
|
||||
clicked => { clicked }
|
||||
clicked => { root.clicked() }
|
||||
}
|
||||
Text {
|
||||
x: 50;
|
||||
|
@ -49,7 +49,7 @@ Hello := Rectangle {
|
|||
width: 100;
|
||||
height: 100;
|
||||
color: blue;
|
||||
clicked => { foobar }
|
||||
clicked => { foobar() }
|
||||
}
|
||||
Rectangle {
|
||||
x: 100;
|
||||
|
@ -75,7 +75,7 @@ Hello := Rectangle {
|
|||
color: 4289374890;
|
||||
x: 50;
|
||||
y: 225;
|
||||
clicked => { plus_clicked }
|
||||
clicked => { plus_clicked() }
|
||||
button_text: "+";
|
||||
}
|
||||
property<int32> counter;
|
||||
|
@ -84,7 +84,7 @@ Hello := Rectangle {
|
|||
color: 4289374890;
|
||||
x: 50;
|
||||
y: 350;
|
||||
clicked => { minus_clicked }
|
||||
clicked => { minus_clicked() }
|
||||
button_text: "-";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue