slint/tests
Olivier Goffart 81e5d3bb36 Fix setting rotation-angle and opacity from a callback
... if they are not set as actual binding before

As reported in #3068

The problem is that the pass will properly create the Rotation or
Opacity item, but will not create the two way binding if there is no
existing binding. This causes code like `img.rotation-angle = ...` to
change the rotation angle of the image, but not its parent Rotation
item.
Fix it by making sure there is always a binding.

Since the change only affect visual representation, I abused one of the
screenshot test to test this feature. And I also patched another bug
that some #[allow(unused_parens)] was not set in the 'init' callback and
would cause a warning in the test
2023-07-11 20:07:49 +02:00
..
cases Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
doctests Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
driver Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
helper_components Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
manual Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
screenshots Fix setting rotation-angle and opacity from a callback 2023-07-11 20:07:49 +02:00