From 9f6db8977001fd4997fcebd08807fd5ee7eb2b3b Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 11 Jun 2024 09:05:14 +0200 Subject: [PATCH] Examples: port simple_input.sh to the new syntax As discussed in https://github.com/slint-ui/slint/discussions/5383 (and #5342) --- examples/bash/simple_input.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/bash/simple_input.sh b/examples/bash/simple_input.sh index a41cc3042b8..dba8fb4a95d 100755 --- a/examples/bash/simple_input.sh +++ b/examples/bash/simple_input.sh @@ -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;