declarative: Add a QML extension object for accessing the margins property

Otherwise we get the following error message:
Property "margins" with type "QMargins", which is not a value type

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
This commit is contained in:
Aleix Pol Gonzalez
2024-03-05 14:51:50 +01:00
parent c407f9a8c4
commit 3f9c4e7982
2 changed files with 29 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Item
LayerShell.Window.anchors: LayerShell.Window.AnchorLeft
LayerShell.Window.layer: LayerShell.Window.LayerTop
LayerShell.Window.exclusionZone: width
LayerShell.Window.margins.left: 100
width: 100
height: 100