From f7b0e4665b223d86045110ff3d4704c1a7760a4d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:01:48 +1000 Subject: format: conform to qml coding conventions --- widgets/Box.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'widgets/Box.qml') diff --git a/widgets/Box.qml b/widgets/Box.qml index 536469e..d93fb69 100644 --- a/widgets/Box.qml +++ b/widgets/Box.qml @@ -17,11 +17,6 @@ Rectangle { readonly property int paddingX: getRealPadding().x readonly property int paddingY: getRealPadding().y - color: "transparent" - - implicitWidth: childrenRect.width + paddingX - implicitHeight: childrenRect.height + paddingY - function getRealPadding() { const pad = {}; @@ -49,6 +44,11 @@ Rectangle { return pad; } + color: "transparent" + + implicitWidth: childrenRect.width + paddingX + implicitHeight: childrenRect.height + paddingY + onChildrenChanged: { for (const child of children) { child.x = Qt.binding(() => paddingLeft); -- cgit v1.2.3-freya