| 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 | TC := Rectangle { |
| 5 | // ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 6 | outer := VerticalLayout { |
| 7 | // ^error{The binding for the property 'width' is part of a binding loop} |
| 8 | // ^^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 9 | inner := HorizontalLayout { |
| 10 | // ^error{The binding for the property 'width' is part of a binding loop} |
| 11 | // ^^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 12 | inner_inner := VerticalLayout { |
| 13 | width: parent.width; |
| 14 | // ^error{The binding for the property 'width' is part of a binding loop} |
| 15 | Rectangle {} |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | |
| 22 | export Test := Rectangle { |
| 23 | VerticalLayout { |
| 24 | // ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} // FIXME: That's an internal property, but people might understand |
| 25 | // ^^error{The binding for the property 'min-width' is part of a binding loop} |
| 26 | Rectangle { |
| 27 | width: parent.min_width; |
| 28 | // ^error{The binding for the property 'width' is part of a binding loop} |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | |
| 33 | l := HorizontalLayout { |
| 34 | // ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} // FIXME: That's an internal property, but people might understand |
| 35 | // ^^error{The binding for the property 'preferred-width' is part of a binding loop} |
| 36 | // ^^^error{The binding for the property 'layoutinfo-v' is part of a binding loop} |
| 37 | // ^^^^error{The binding for the property 'preferred-height' is part of a binding loop} |
| 38 | // ^^^^^error{The binding for the property 'width' is part of a binding loop} |
| 39 | // ^^^^^^error{The binding for the property 'layout-cache' is part of a binding loop} |
| 40 | Text { |
| 41 | text: "hello \{l.preferred-width/1px}x\{l.preferred-height/1px}" ; |
| 42 | // ^error{The binding for the property 'text' is part of a binding loop} |
| 43 | wrap: word-wrap; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | tc := TC { |
| 48 | // ^error{The binding for the property 'preferred-width' is part of a binding loop} |
| 49 | width: preferred-width; |
| 50 | // ^error{The binding for the property 'width' is part of a binding loop} |
| 51 | } |
| 52 | } |
| 53 | |