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
committed by Marco Martin
parent 05de6c67b2
commit 44e011e2c6
2 changed files with 27 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