slint/internal/compiler/tests/syntax/layout/if_in_grid.slint
Aurindam Jana 9a3aa265d5
Update Royalty-free license (#5257)
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00

24 lines
703 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-commercial
export Test := Rectangle {
property <bool> condition;
GridLayout {
Row {
if (condition): Text {
// ^error{'if' or 'for' expressions are not currently supported in grid layouts}
}
}
if (condition): Text {
// ^error{'if' or 'for' expressions are not currently supported in grid layouts}
}
for x in 5: Text {
// ^error{'if' or 'for' expressions are not currently supported in grid layouts}
}
}
}