diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-03-05 23:44:00 +0100 |
---|---|---|
committer | Jari-Pekka Nurmi <jpnurmi@theqtcompany.com> | 2015-03-06 00:47:27 +0200 |
commit | ad6a1b0d26dee4e6474b73f9363fb6726e304e14 (patch) | |
tree | 6bea4c7b15699031088f69f58aa2c90addb9ccb1 /src/imports/controls/GroupBox.qml | |
parent | 3499e4db715ca63b49b47e3ff7cfb38161e81816 (diff) |
Add Control::padding for convenience
Change-Id: I9a472e2378854ba07ce34ad571f54b0fa4a3755c
Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/GroupBox.qml')
-rw-r--r-- | src/imports/controls/GroupBox.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imports/controls/GroupBox.qml b/src/imports/controls/GroupBox.qml index 2e278e3a..f3f032a8 100644 --- a/src/imports/controls/GroupBox.qml +++ b/src/imports/controls/GroupBox.qml @@ -50,10 +50,8 @@ AbstractGroupBox { contentWidth: content.children.length === 1 ? content.children[0].implicitWidth : 0 contentHeight: content.children.length === 1 ? content.children[0].implicitHeight : 0 + padding: style.padding topPadding: style.padding + (label && title ? label.implicitHeight + style.spacing : 0) - leftPadding: style.padding - rightPadding: style.padding - bottomPadding: style.padding contentItem: Item { id: content |