slint/internal/compiler
Olivier Goffart 425b477874 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: #1394
2022-11-04 15:32:20 +01:00
..
generator Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
LICENSES Fix LICENSES symlinks 2022-02-09 17:05:47 +01:00
llr Builtin elements: use the input output syntax 2022-11-01 12:51:45 +01:00
parser Rename inout property to input output 2022-10-31 14:57:52 +01:00
parser-test-macro Bump version number to 0.3.2 2022-10-28 09:30:14 +00:00
passes Always keep the binding of the right in a two way binding 2022-11-04 15:32:20 +01:00
tests New syntax: Make it an error to set the value of a builtin output property 2022-11-01 12:51:45 +01:00
widgets md: adjust GroupBox, CheckBox and SpinBox (#1812) 2022-11-02 17:25:44 +01:00
build.rs switch to yeslogic-fontconfig-sys from servo-fontconfig 2022-10-05 15:21:54 +02:00
builtin_macros.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
builtins.slint Always set Window.default-font-size 2022-11-03 17:15:44 +01:00
Cargo.toml Bump resvg/usvg/tiny-skia dependencies 2022-11-01 10:44:33 +01:00
diagnostics.rs LSP: fetch the file content from cache instead of from disk to compute the line number 2022-06-02 21:45:50 +02:00
embedded_resources.rs swrenderer: Optimize image drawing by using premultiplied colors 2022-06-14 11:23:02 +02:00
expression_tree.rs Always keep the binding of the right in a two way binding 2022-11-04 15:32:20 +01:00
fileaccess.rs Scan for style files in the include directories 2022-02-15 13:55:50 +01:00
generator.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
langtype.rs New syntax: Make it an error to set the value of a builtin output property 2022-11-01 12:51:45 +01:00
layout.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
lexer.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lib.rs Move the mcu backend to become a board support helper crate for examples 2022-08-25 12:54:52 +02:00
literals.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
llr.rs Fix a bunch of documentation warnings 2022-04-26 12:47:34 +02:00
load_builtins.rs Builtin elements: use the input output syntax 2022-11-01 12:51:45 +01:00
lookup.rs New syntax: Make it an error to set the value of a builtin output property 2022-11-01 12:51:45 +01:00
namedreference.rs Builtin elements: use the input output syntax 2022-11-01 12:51:45 +01:00
object_tree.rs New syntax: Make it an error to set the value of a builtin output property 2022-11-01 12:51:45 +01:00
parser.rs Test: fix the parser tests when running without SLINT_EXPERIMENTAL_SYNTAX defined 2022-10-27 13:06:40 +02:00
passes.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
README.md Change the Url from sixtyfps.io to slint-ui.com 2022-02-08 08:52:46 +01:00
typeloader.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
typeregister.rs New syntax: allow to create component without base 2022-10-26 18:09:57 +02:00

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.