1 | #![allow (deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/subcomponents"# ] |
2 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
3 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
4 | |
5 | // Verify that we can instantiate sub-components in nested repeaters |
6 | // and succeed in generating code that determines the root correctly, |
7 | // to access global singletons. |
8 | |
9 | Label := Text { |
10 | |
11 | } |
12 | |
13 | SubCompo := Rectangle { |
14 | for x in 1: Rectangle { |
15 | for y in 1: Label { |
16 | for z in 1: Label { |
17 | } |
18 | } |
19 | } |
20 | } |
21 | |
22 | TestCase := Rectangle { |
23 | width: 300phx; |
24 | height: 300phx; |
25 | SubCompo {} |
26 | } |
27 | } |
28 | |