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// Test case that accesses a declared property ("property<bool> pressed") from within a binding for "text".
5// The property will be moved to the root as part of the move declarations pass and therefore the named reference
6// to "gallery_button.pressed" needs to be fixed up.
7App := Rectangle {
8 gallery_button := Rectangle {
9 property<string> text: gallery_button.pressed ? "Button pressed" : "Button not pressed";
10 property<bool> pressed: touch_area.pressed;
11
12 touch_area := TouchArea { }
13 }
14}
15