1 | #![allow(deprecated)]slint::slint!{#[include_path= r#"/input/slint/tests/driver/driverlib/../../cases/models"#] |
---|---|
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 | // Test that the condition of an if can access the properties of native items |
6 | |
7 | |
8 | TestCase := Rectangle { |
9 | width: 100phx; |
10 | height: 100phx; |
11 | |
12 | ta := TouchArea {} |
13 | if (ta.pressed) : Rectangle {} |
14 | } |
15 | } |
16 |