PopupWindow: added close-policy property (#6614)

* Update api/cpp/include/slint_window.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/reference/src/language/builtins/elements.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update internal/core/window.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update internal/interpreter/eval.rs

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update internal/backends/qt/qt_window.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update internal/interpreter/dynamic_item_tree.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update internal/compiler/passes/materialize_fake_properties.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
This commit is contained in:
FloVanGH 2024-10-24 11:27:39 +02:00 committed by GitHub
parent 0bf924cf0d
commit 14c7910d49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 657 additions and 61 deletions

View file

@ -674,6 +674,7 @@ impl<'a, T> TypeResolutionContext for EvaluationContext<'a, T> {
for i in sub_component_path {
sub_component = &sub_component.sub_components[*i].ty;
}
sub_component.items[*item_index as usize].ty.lookup_property(prop_name).unwrap()
}
PropertyReference::InParent { level, parent_reference } => {