mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 15:17:25 +00:00
13 lines
407 B
Text
13 lines
407 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
import { VerticalBox, Button } from "std-widgets.slint";
|
|
export Recipe := Window {
|
|
property <int> counter: 0;
|
|
callback button_pressed <=> button.clicked;
|
|
VerticalBox {
|
|
button := Button {
|
|
text: "Button, pressed \{root.counter} times";
|
|
}
|
|
}
|
|
}
|