Fixed kebab casing of previous appwindow.slint.

This commit is contained in:
Enyium 2024-09-19 11:37:44 +02:00 committed by Simon Hausmann
parent 844590cac8
commit 9894eca229
25 changed files with 33 additions and 33 deletions

View file

@ -0,0 +1,35 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
import {Button, AboutSlint} from "std-widgets.slint";
export global Logic {
callback increment(int) -> int;
}
export struct FooBar {
abc: int, def: string
}
component R {
property <FooBar> foo;
Rectangle {
TouchArea {}
}
}
export component App inherits Window {
preferred-width: 800px;
preferred-height: 600px;
property <int> count;
VerticalLayout {
AboutSlint { }
Button {
text: "Hello";
clicked => { count = Logic.increment(count); }
}
Text { text: count; }
R { }
}
}