1 | #![allow (deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/bindings"# ] |
2 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
3 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
4 | |
5 | // There used to be a bug in the deduplicate_property_read pass that would mess up aliases |
6 | |
7 | BoxWithButtons := Window { |
8 | property <string> value <=> val.text; |
9 | val := Text {} |
10 | } |
11 | |
12 | export TestCase := BoxWithButtons { |
13 | property <int> temperature: 24; |
14 | value: { |
15 | (temperature < 0 ? "" : "+" ) + temperature; |
16 | } |
17 | |
18 | property <bool> test: value == "+24" ; |
19 | } |
20 | } |
21 | |