forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always keep the binding of the right in a two way binding
When having a binding such as ``` foo <=> bar ``` The default value will always be the value of `bar` regardless what's the value of foo. This change of behavior is the only one that makes sense bacause if we are having repeater or if, this will be a problem. eg: ``` property <xxx> bar; if (some_cndition) : SomeElement { foo <=> bar; } ``` Then we can't possibly take the default value of foo for the value of bar since it depends on the condition. (and it is even worse in case of repeater) This is a change of behevior, this is why the tests have changed. The cse of tests/cases/bindings/* were already covered by a warning since 0.3.0 so that should be fine. But the warning did not trigger for builtin property such as `visible` (eg, input/visible_mouse test) Also some internal two way bindings had to be reversed. cc: slint-ui#1394
- Loading branch information
Showing
6 changed files
with
66 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters