summaryrefslogtreecommitdiff
path: root/widgets/ClippingBoxLayout.qml
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/ClippingBoxLayout.qml')
-rw-r--r--widgets/ClippingBoxLayout.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/ClippingBoxLayout.qml b/widgets/ClippingBoxLayout.qml
index 2b22c8c..e96554c 100644
--- a/widgets/ClippingBoxLayout.qml
+++ b/widgets/ClippingBoxLayout.qml
@@ -6,6 +6,8 @@ import QtQuick.Layouts
ClippingRectangle {
id: root
+ default property alias children: layout.children
+
property bool vertical: false
property bool homogenous: false
property bool animated: false
@@ -19,11 +21,6 @@ ClippingRectangle {
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 = {};
@@ -51,7 +48,10 @@ ClippingRectangle {
return pad;
}
- default property alias children: layout.children
+ color: "transparent"
+
+ implicitWidth: layout.implicitWidth + paddingX
+ implicitHeight: layout.implicitHeight + paddingY
GridLayout {
id: layout