LSP: Allow to change rotation properties for all elements

This is about what properties are shown in the properties panel of the live preview
This commit is contained in:
Olivier Goffart 2025-09-12 10:03:52 +02:00 committed by GitHub
parent ebbb677655
commit d1f91e9593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,15 +467,11 @@ pub(super) fn get_properties(
group_priority: depth,
});
if b.name == "Image" || b.name == "Text" {
result.extend(get_reserved_properties(
&b.name,
depth,
i_slint_compiler::typeregister::RESERVED_ROTATION_PROPERTIES
.iter()
.cloned(),
));
}
result.extend(get_reserved_properties(
&b.name,
depth,
i_slint_compiler::typeregister::RESERVED_ROTATION_PROPERTIES.iter().cloned(),
));
if matches!(b.name.as_str(), "GridLayout" | "HorizontalLayout" | "VerticalLayout") {
// Add the padding that is otherwise filtered out