mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +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
23
examples/cpp/platform_native/app-window.slint
Normal file
23
examples/cpp/platform_native/app-window.slint
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import {Button, AboutSlint} from "std-widgets.slint";
|
||||
|
||||
export component AppWindow inherits Window {
|
||||
property <int> count;
|
||||
|
||||
preferred-width: 600px;
|
||||
preferred-height: 300px;
|
||||
|
||||
VerticalLayout {
|
||||
AboutSlint { }
|
||||
|
||||
Button {
|
||||
clicked => { count += 1; }
|
||||
text: "Press me";
|
||||
}
|
||||
|
||||
Text { text: count; }
|
||||
Rectangle { }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue