Examples: port simple_input.sh to the new syntax

As discussed in https://github.com/slint-ui/slint/discussions/5383
(and #5342)
This commit is contained in:
Olivier Goffart 2024-06-11 09:05:14 +02:00
parent b3de1e848e
commit 9f6db89770

View file

@ -4,9 +4,9 @@
OUTPUT=$(slint-viewer - --save-data - << EOF
import { StandardButton, GridBox, LineEdit } from "std-widgets.slint";
_ := Dialog {
property name <=> name-le.text;
property address <=> address-le.text;
export component _ inherits Dialog {
in-out property address <=> address-le.text;
in-out property name <=> name-le.text;
StandardButton { kind: ok; }
StandardButton { kind: cancel; }
preferred-width: 300px;