mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-17 22:08:39 +00:00
Use the new syntax in more tests
That are failing otherwise as there would be a warning
This commit is contained in:
parent
6f3dfc992f
commit
e57627d535
4 changed files with 43 additions and 43 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
"#;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue