cleanup examples according to upcoming code guidelines (#3809)

This commit is contained in:
Florian Blasius 2023-11-02 11:04:40 +01:00 committed by GitHub
parent e3dbefafa5
commit 4ec63a9c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
67 changed files with 1320 additions and 978 deletions

View file

@ -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 { }
}

View file

@ -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 { }