| 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 | |
| 4 | // Test that the condition of an if can access the properties of native items |
| 5 | |
| 6 | |
| 7 | TestCase := Rectangle { |
| 8 | width: 100phx; |
| 9 | height: 100phx; |
| 10 | |
| 11 | ta := TouchArea {} |
| 12 | if (ta.pressed) : Rectangle {} |
| 13 | } |
| 14 |
