mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
Use the tool to replace = with :=
This commit is contained in:
parent
7be8b09b3b
commit
d8601621c0
9 changed files with 14 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
component TwoRectangle = Rectangle {
|
component TwoRectangle := Rectangle {
|
||||||
|
|
||||||
signal clicked;
|
signal clicked;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ component TwoRectangle = Rectangle {
|
||||||
height: 25;
|
height: 25;
|
||||||
color: red;
|
color: red;
|
||||||
|
|
||||||
my_area = TouchArea {
|
my_area := TouchArea {
|
||||||
width: 25;
|
width: 25;
|
||||||
height: 25;
|
height: 25;
|
||||||
clicked => { clicked }
|
clicked => { clicked }
|
||||||
|
@ -20,7 +20,7 @@ component TwoRectangle = Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
component ButtonRectangle = Rectangle {
|
component ButtonRectangle := Rectangle {
|
||||||
signal clicked;
|
signal clicked;
|
||||||
width: 100;
|
width: 100;
|
||||||
height: 75;
|
height: 75;
|
||||||
|
@ -31,7 +31,7 @@ component ButtonRectangle = Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Hello = Rectangle {
|
Hello := Rectangle {
|
||||||
|
|
||||||
signal foobar;
|
signal foobar;
|
||||||
signal plus_clicked;
|
signal plus_clicked;
|
||||||
|
@ -77,7 +77,7 @@ Hello = Rectangle {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
counter = Text { x: 100; y: 300; text: "0"; color: black; }
|
counter := Text { x: 100; y: 300; text: "0"; color: black; }
|
||||||
ButtonRectangle {
|
ButtonRectangle {
|
||||||
color: 4289374890;
|
color: 4289374890;
|
||||||
x: 50;
|
x: 50;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
SuperSimple = Rectangle {
|
SuperSimple := Rectangle {
|
||||||
color: green;
|
color: green;
|
||||||
color: red;
|
color: red;
|
||||||
// ^error{Duplicated property}
|
// ^error{Duplicated property}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
SuperSimple = Rectangle {
|
SuperSimple := Rectangle {
|
||||||
color: green;
|
color: green;
|
||||||
|
|
||||||
for xx in zz: Hello {
|
for xx in zz: Hello {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
SubElements = Rectangle {
|
SubElements := Rectangle {
|
||||||
|
|
||||||
color: blue;
|
color: blue;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
|
||||||
component Inline1 = Rectangle {
|
component Inline1 := Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: 66;
|
x: 66;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SubElements = Rectangle {
|
SubElements := Rectangle {
|
||||||
Inline1 {
|
Inline1 {
|
||||||
color: yellow;
|
color: yellow;
|
||||||
invalid: yellow;
|
invalid: yellow;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
SubElements = Rectangle {
|
SubElements := Rectangle {
|
||||||
signal foobar;
|
signal foobar;
|
||||||
|
|
||||||
TouchArea {
|
TouchArea {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
SubElements = Rectangle {
|
SubElements := Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: yellow;
|
color: yellow;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
SuperSimple = Rectangle {
|
SuperSimple := Rectangle {
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
SuperSimple = Rectangle {
|
SuperSimple := Rectangle {
|
||||||
DoesNotExist {
|
DoesNotExist {
|
||||||
// ^error{Unkown type DoesNotExist}
|
// ^error{Unkown type DoesNotExist}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue