mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
cleanup examples according to upcoming code guidelines (#3809)
This commit is contained in:
parent
e3dbefafa5
commit
4ec63a9c71
67 changed files with 1320 additions and 978 deletions
|
@ -4,16 +4,19 @@
|
|||
import {Button, AboutSlint} from "std-widgets.slint";
|
||||
|
||||
export component AppWindow inherits Window {
|
||||
property <int> count;
|
||||
|
||||
preferred-width: 600px;
|
||||
preferred-height: 300px;
|
||||
property <int> count;
|
||||
|
||||
VerticalLayout {
|
||||
AboutSlint { }
|
||||
|
||||
Button {
|
||||
text: "Press me";
|
||||
clicked => { count += 1; }
|
||||
text: "Press me";
|
||||
}
|
||||
|
||||
Text { text: count; }
|
||||
Rectangle { }
|
||||
}
|
||||
|
|
|
@ -4,16 +4,19 @@
|
|||
import {Button, AboutSlint, LineEdit } from "std-widgets.slint";
|
||||
|
||||
export component App inherits Window {
|
||||
property <int> count;
|
||||
|
||||
preferred-width: 800px;
|
||||
preferred-height: 600px;
|
||||
property <int> count;
|
||||
|
||||
VerticalLayout {
|
||||
AboutSlint { }
|
||||
|
||||
Button {
|
||||
text: "Hello";
|
||||
clicked => { count += 1; }
|
||||
text: "Hello";
|
||||
}
|
||||
|
||||
Text { text: count; }
|
||||
LineEdit {}
|
||||
Rectangle { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue