1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4App := Window {
5 for menu-item in [{children: ["hello"]}] : VerticalLayout {
6 Rectangle {
7 popup := PopupWindow {
8 Rectangle {
9 for child in menu-item.children : Rectangle {
10 }
11 }
12 }
13 }
14 }
15
16 if true : Rectangle {
17 Rectangle {
18 TouchArea {
19 clicked => {
20 popup2.show();
21 }
22 }
23 popup2 := PopupWindow { }
24 }
25 }
26
27 // Issue #1132
28 for menu-item in [0] : TouchArea {
29 clicked => { popup3.show(); }
30 if true: TouchArea {
31 clicked => { popup3.show(); }
32 }
33 popup3 := PopupWindow { }
34 }
35
36}
37
38