| 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 | |
| 5 | // A Text that does not use word wrap's height should not depends on the width |
| 6 | |
| 7 | TestCase := Rectangle { |
| 8 | |
| 9 | VerticalLayout { |
| 10 | HorizontalLayout { |
| 11 | Text { |
| 12 | text: "Hello World" ; |
| 13 | } |
| 14 | square := Rectangle { |
| 15 | width: height; |
| 16 | background: violet; |
| 17 | } |
| 18 | } |
| 19 | Rectangle {} |
| 20 | } |
| 21 | |
| 22 | property <bool> test: square.width == square.height; |
| 23 | } |
| 24 | |