1 | #![allow (deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/imports/../../helper_components"# ] |
2 | #[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/imports"# ] |
3 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
4 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
5 | |
6 | //include_path: ../../helper_components |
7 | import { ColorButton } from "test_button.slint" ; |
8 | import { TestButton as TheRealTestButton } from "re_export.slint" ; |
9 | |
10 | // ColorButton uses TestButtonImpl |
11 | TestButtonImpl := Rectangle { |
12 | property <int> abc: 12; |
13 | } |
14 | |
15 | // Testbutton is another name for TestButtonImpl |
16 | TestButton := Rectangle { |
17 | property <string> abc: "hello" ; |
18 | } |
19 | |
20 | TestCase := Rectangle { |
21 | ColorButton { button_color: red; } |
22 | TestButtonImpl { abc: 4; } |
23 | TestButton { abc: "world" ; } |
24 | TheRealTestButton{ button-text: "yo" ; } |
25 | } |
26 | } |
27 | |