slint/tests/cases
Simon Hausmann e0f3e6b782 Fix the C++ printer demo with disabled inline
For the following reduced test-case the order in how the dynamic nodes
in the item tree were generated (and dyn indices assigned) differed from
the way the visit_dynamic_children slots were generated:

```
Blah := Rectangle {
    for x in 1: Text {
        text: "Should be on the right";
    }
}

MainWindow := Window {
    width: 772px;
    height: 504px;
    Text {
        if (false): TouchArea {
        }
    }
    Blah {
        x: 200px;
    }
}
```

The item tree node was constructed using build_item_tree, which
basically assigned dyn index 0 to the "repater" for the touch area
and "1" to the one for the repeater inside the sub-component.

Afterwards we traversed the element tree - without descending into the
sub-components - to generate the fields and the dispatch in in the
dynamic visitor. Here a subtle order would result in a mismatch of
indices:

recurse_elem_level_order would end up visiting Text, Blah and then
Text's children, assigning the first dynamic index to Blah.

This is now fixed by merging the two iterations into one.
2021-11-04 11:03:44 +01:00
..
bindings Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
callbacks Fix interpreter panics when calling callback that weren't set 2021-08-24 11:37:47 +02:00
children Update license date 2021-07-02 15:55:54 +02:00
conditional Update license date 2021-07-02 15:55:54 +02:00
crashes Fix the item tree building for components whose base is a component 2021-11-03 14:59:27 +01:00
elements Do the popup window pass before inlining 2021-10-28 15:52:29 +02:00
examples Move a few more passes before inlining 2021-10-28 15:52:29 +02:00
expr Properly handle self assignment on non-float types 2021-07-23 16:33:50 +02:00
focus Fix nodejs test 2021-11-03 10:23:00 +01:00
globals Visit globals when finding usages of structs 2021-10-06 18:48:06 +02:00
imports Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
input Don't try to keep the used_component while doing the inline pass 2021-11-01 13:47:09 +01:00
layout Do the default_geometry pass without inlining 2021-10-28 15:52:29 +02:00
lookup Update license date 2021-07-02 15:55:54 +02:00
models Fix model length tracking in the interpreter 2021-10-20 15:25:28 +02:00
properties Fix LineEdit.has-focus witht he native style 2021-10-14 15:34:25 +02:00
subcomponents Fix the C++ printer demo with disabled inline 2021-11-04 11:03:44 +01:00
text Do the apply_default_properties_from_style before the lower_states pass 2021-11-04 10:08:30 +01:00
types Fix panic in the interpreter if there are properties that are aliased to struct 2021-10-06 18:33:27 +02:00
7gui Make a link from 7gui directory to the test case so that the .60 files are tested 2020-12-02 12:00:05 +01:00
debug.60 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
image_geometry.60 Do the default_geometry pass without inlining 2021-10-28 15:52:29 +02:00
simple.60 Update license date 2021-07-02 15:55:54 +02:00
states.60 Update license date 2021-07-02 15:55:54 +02:00