Commit 1214ed8f authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen

QmlDesigner: Make section more customizable

Change-Id: If3a02c083a075c2b53a8ae97ba1602603f999844
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent cb0e1d04
......@@ -35,6 +35,9 @@ Item {
id: section
property alias caption: label.text
property int leftPadding: 8
property int topPadding: 4
property int rightPadding: 0
clip: true
......@@ -93,16 +96,19 @@ Item {
}
}
default property alias __content: row.data
default property alias __content: row.children
readonly property alias contentItem: row
implicitHeight: Math.round(row.height + header.height + 8)
Row {
width: parent.width
x: 8
y: header.height + 4
anchors.left: parent.left
anchors.leftMargin: leftPadding
anchors.right: parent.right
anchors.rightMargin: rightPadding
anchors.top: header.bottom
anchors.topMargin: topPadding
id: row
Behavior on opacity { NumberAnimation{easing.type: Easing.Linear ; duration: 80} }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment