mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
Fixed kebab casing of previous appwindow.slint
.
This commit is contained in:
parent
844590cac8
commit
9894eca229
25 changed files with 33 additions and 33 deletions
35
api/cpp/tests/multiple-includes/app-window.slint
Normal file
35
api/cpp/tests/multiple-includes/app-window.slint
Normal 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 { }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue