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//include_path: ../../helper_components
5import { ColorButton } from "test_button.slint";
6import { TestButton as TheRealTestButton } from "re_export.slint";
7
8// ColorButton uses TestButtonImpl
9TestButtonImpl := Rectangle {
10 property <int> abc: 12;
11}
12
13// Testbutton is another name for TestButtonImpl
14TestButton := Rectangle {
15 property <string> abc: "hello";
16}
17
18TestCase := Rectangle {
19 ColorButton { button_color: red; }
20 TestButtonImpl { abc: 4; }
21 TestButton { abc: "world"; }
22 TheRealTestButton{ button-text: "yo"; }
23}
24