mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
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:
parent
b3de1e848e
commit
9f6db89770
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue