| 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 | import { TabWidget } from "std-widgets.slint" ; |
| 5 | |
| 6 | export Test2 := Rectangle { |
| 7 | TabWidget { |
| 8 | Tab { |
| 9 | visible: false; |
| 10 | // ^error{The property 'visible' cannot be set for Tabs inside a TabWidget} |
| 11 | Rectangle { } |
| 12 | } |
| 13 | f := Tab { |
| 14 | height: 50%; |
| 15 | // ^error{The property 'height' cannot be set for Tabs inside a TabWidget} |
| 16 | } |
| 17 | Tab { |
| 18 | Rectangle { } |
| 19 | visible <=> f.visible; |
| 20 | // ^error{The property 'visible' cannot be set for Tabs inside a TabWidget} |
| 21 | } |
| 22 | |
| 23 | if (true) : Tab { |
| 24 | // ^error{dynamic tabs \('if' or 'for'\) are currently not supported} |
| 25 | title: "hello" ; |
| 26 | } |
| 27 | |
| 28 | Tab { |
| 29 | accessible-role: tab-panel; |
| 30 | // ^error{The property 'accessible-role' cannot be set for Tabs inside a TabWidget} |
| 31 | Rectangle { } |
| 32 | } |
| 33 | Tab { |
| 34 | accessible-label: "Tab Panel" ; |
| 35 | // ^error{The property 'accessible-label' cannot be set for Tabs inside a TabWidget} |
| 36 | Rectangle { } |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |