summaryrefslogtreecommitdiff
path: root/widgets/BoxLayout.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-28 11:01:48 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-28 11:01:48 +1000
commitf7b0e4665b223d86045110ff3d4704c1a7760a4d (patch)
tree5e71541184bf7b736b99d689e4920dda44eeefd8 /widgets/BoxLayout.qml
parentfeat: anims + box padding (diff)
downloadcaelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.gz
caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.bz2
caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.zip
format: conform to qml coding conventions
Diffstat (limited to 'widgets/BoxLayout.qml')
-rw-r--r--widgets/BoxLayout.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/BoxLayout.qml b/widgets/BoxLayout.qml
index 12aa4f7..da68409 100644
--- a/widgets/BoxLayout.qml
+++ b/widgets/BoxLayout.qml
@@ -5,6 +5,8 @@ import QtQuick.Layouts
Rectangle {
id: root
+ default property alias children: layout.children
+
property bool vertical: false
property bool homogenous: false
property bool animated: false
@@ -18,11 +20,6 @@ Rectangle {
readonly property int paddingX: getRealPadding().x
readonly property int paddingY: getRealPadding().y
- color: "transparent"
-
- implicitWidth: layout.implicitWidth + paddingX
- implicitHeight: layout.implicitHeight + paddingY
-
function getRealPadding() {
const pad = {};
@@ -50,7 +47,10 @@ Rectangle {
return pad;
}
- default property alias children: layout.children
+ color: "transparent"
+
+ implicitWidth: layout.implicitWidth + paddingX
+ implicitHeight: layout.implicitHeight + paddingY
GridLayout {
id: layout