Support for code blocks and signal call

This commit is contained in:
Olivier Goffart 2020-05-28 12:25:26 +02:00
parent f2df9293a9
commit 95b671c97c
11 changed files with 240 additions and 84 deletions

View file

@ -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: "-";
}