diff options
author | Marco Bubke <marco.bubke@digia.com> | 2014-07-03 13:54:19 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2014-07-04 10:45:46 +0200 |
commit | 1214ed8fb51d8a3ef5253442eba9ef97548c9574 (patch) | |
tree | c403a5ed5332b661642de9955fd670c00f4e4079 /share/qtcreator | |
parent | cb0e1d040e731e96dfc9f819669edafeaab55686 (diff) | |
download | qt-creator-1214ed8fb51d8a3ef5253442eba9ef97548c9574.tar.gz |
QmlDesigner: Make section more customizable
Change-Id: If3a02c083a075c2b53a8ae97ba1602603f999844
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'share/qtcreator')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/Section.qml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/Section.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/Section.qml index ce2a262203..f794b377d4 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/Section.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/Section.qml @@ -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} } } |