mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-22 00:02:40 +00:00

Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
26 lines
780 B
Text
26 lines
780 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
App := Rectangle {
|
|
property <string> hello: "ooo";
|
|
if (hello != "") : Text { text <=> hello; }
|
|
|
|
property<bool> test1: hello == "ooo";
|
|
|
|
// Another crash:
|
|
property <string> directory: "hello";
|
|
vl := VerticalLayout {
|
|
if true: pp:= Rectangle {
|
|
property <string> text <=> root.directory;
|
|
HorizontalLayout {
|
|
inner := Text {
|
|
text: pp.text;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ref := Text { text: "hello"; }
|
|
property<bool> test2: vl.preferred-width == ref.preferred-width;
|
|
|
|
property<bool> test: test1 && test2;
|
|
}
|