diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-10-24 14:05:20 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-24 14:05:20 +0800 |
| commit | 5efbb36cca0735ccdc32130d648a062c8dc59cdb (patch) | |
| tree | a07e2f2475861530189a652c27174048eab85a03 /ui/app-window.slint | |
| parent | 5bece4655dc21426e18457c2bf9799ab8994f0ce (diff) | |
wipslint
Diffstat (limited to 'ui/app-window.slint')
| -rw-r--r-- | ui/app-window.slint | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/app-window.slint b/ui/app-window.slint new file mode 100644 index 0000000..2d5522c --- /dev/null +++ b/ui/app-window.slint @@ -0,0 +1,18 @@ +import { Button, VerticalBox } from "std-widgets.slint"; + +export component AppWindow inherits Window { + in-out property <int> counter: 42; + callback request-increase-value(); + VerticalBox { + Text { + text: "Counter: \{root.counter}"; + } + + Button { + text: "Increase value"; + clicked => { + root.request-increase-value(); + } + } + } +} |
