slint/tests/cases/elements/path.slint
Olivier Goffart ea3072d696 Path: fix panic when accessing properties on sub commands
We need to keep the ElementRc around with its properties so that
accessing them doesn't panic later
2024-09-10 11:44:13 +02:00

14 lines
382 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
export component TestCase inherits Path {
property<float> my_x: 100;
stroke: red;
stroke-width: 10px;
MoveTo {}
LineTo {
property<float> my_y: 200;
x: root.my_x;
y: my_y;
}
}