mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00

Updated the version from 1.1 to 1.2 Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License" Added definition of "Mobile Application" and grant of right Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage Moved the para on copyright notices to section under "Limitations"
52 lines
2.4 KiB
Text
52 lines
2.4 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
|
|
|
TC := Rectangle {
|
|
// ^error{The binding for the property 'layoutinfo-h' is part of a binding loop}
|
|
outer := VerticalLayout {
|
|
// ^error{The binding for the property 'width' is part of a binding loop}
|
|
// ^^error{The binding for the property 'layoutinfo-h' is part of a binding loop}
|
|
inner := HorizontalLayout {
|
|
// ^error{The binding for the property 'width' is part of a binding loop}
|
|
// ^^error{The binding for the property 'layoutinfo-h' is part of a binding loop}
|
|
inner_inner := VerticalLayout {
|
|
width: parent.width;
|
|
// ^error{The binding for the property 'width' is part of a binding loop}
|
|
Rectangle {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export Test := Rectangle {
|
|
VerticalLayout {
|
|
// ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} // FIXME: That's an internal property, but people might understand
|
|
// ^^error{The binding for the property 'min-width' is part of a binding loop}
|
|
Rectangle {
|
|
width: parent.min_width;
|
|
// ^error{The binding for the property 'width' is part of a binding loop}
|
|
}
|
|
}
|
|
|
|
|
|
l := HorizontalLayout {
|
|
// ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} // FIXME: That's an internal property, but people might understand
|
|
// ^^error{The binding for the property 'preferred-width' is part of a binding loop}
|
|
// ^^^error{The binding for the property 'layoutinfo-v' is part of a binding loop}
|
|
// ^^^^error{The binding for the property 'preferred-height' is part of a binding loop}
|
|
// ^^^^^error{The binding for the property 'width' is part of a binding loop}
|
|
// ^^^^^^error{The binding for the property 'layout-cache' is part of a binding loop}
|
|
Text {
|
|
text: "hello \{l.preferred-width/1px}x\{l.preferred-height/1px}";
|
|
// ^error{The binding for the property 'text' is part of a binding loop}
|
|
wrap: word-wrap;
|
|
}
|
|
}
|
|
|
|
tc := TC {
|
|
// ^error{The binding for the property 'preferred-width' is part of a binding loop}
|
|
width: preferred-width;
|
|
// ^error{The binding for the property 'width' is part of a binding loop}
|
|
}
|
|
}
|