aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/Frame.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-25 23:18:34 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-25 21:27:16 +0000
commitec7a1bece72c9c740f1405721a468d3272d77b4e (patch)
treedb5b3ab59e9513ac701d14301d7fa51d4a97fc05 /src/imports/controls/Frame.qml
parente53cc743fc493644e77a69f665975d6f76ef23b1 (diff)
Simplify Frame/GroupBox/ToolBar::contentWidth/Height bindings
Change-Id: I78f081488915dc5d80362de7ef8389433d487687 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/Frame.qml')
-rw-r--r--src/imports/controls/Frame.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/Frame.qml b/src/imports/controls/Frame.qml
index f721f974..9e016b40 100644
--- a/src/imports/controls/Frame.qml
+++ b/src/imports/controls/Frame.qml
@@ -43,8 +43,8 @@ AbstractFrame {
implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding)
- contentWidth: contentItem.children.length === 1 ? contentItem.children[0].implicitWidth : 0
- contentHeight: contentItem.children.length === 1 ? contentItem.children[0].implicitHeight : 0
+ contentWidth: contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0
+ contentHeight: contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0
padding: Theme.padding