mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-24 13:35:00 +00:00
![]() 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: #1394 |
||
---|---|---|
.. | ||
generator | ||
LICENSES | ||
llr | ||
parser | ||
parser-test-macro | ||
passes | ||
tests | ||
widgets | ||
build.rs | ||
builtin_macros.rs | ||
builtins.slint | ||
Cargo.toml | ||
diagnostics.rs | ||
embedded_resources.rs | ||
expression_tree.rs | ||
fileaccess.rs | ||
generator.rs | ||
langtype.rs | ||
layout.rs | ||
lexer.rs | ||
lib.rs | ||
literals.rs | ||
llr.rs | ||
load_builtins.rs | ||
lookup.rs | ||
namedreference.rs | ||
object_tree.rs | ||
parser.rs | ||
passes.rs | ||
README.md | ||
typeloader.rs | ||
typeregister.rs |
The Slint Compiler Library
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint
crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z"
in Cargo.toml.