Use the new syntax in more tests

That are failing otherwise as there would be a warning
This commit is contained in:
Olivier Goffart 2023-02-10 16:15:03 +01:00 committed by Olivier Goffart
parent 6f3dfc992f
commit e57627d535
4 changed files with 43 additions and 43 deletions

View file

@ -6,11 +6,11 @@ fn reuse_window() {
i_slint_backend_testing::init();
use crate::{ComponentCompiler, ComponentHandle, SharedString, Value};
let code = r#"
export MainWindow := Window {
property<string> text_text: "foo";
property<string> text_alias: input.text;
export component MainWindow inherits Window {
in-out property<string> text_text: "foo";
in-out property<string> text_alias: input.text;
input := TextInput {
text: enabled ? text_text : text_text;
text: self.enabled ? text_text : text_text;
}
}
"#;