aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/Frame.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-09 20:31:20 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-09 18:37:11 +0000
commite70f73fed62bfddc2c7b876aa2845d3b35991256 (patch)
tree70ac6e1ed942bde14496ae9b05844c4fe2f8bb79 /src/imports/controls/Frame.qml
parent08871501d8a7fe44a67116915bce3d2430c70e29 (diff)
Use Control::availableWidth and availableHeight
The same "w - lp - rp" and "h - tp - bp" patterns were repeated all over the codebase. This is why availableWidth and availableHeight were introduced. Change-Id: I8124e8668b553a409a25aa18d775f1bf0494398d 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 dc773e95..01bb0e53 100644
--- a/src/imports/controls/Frame.qml
+++ b/src/imports/controls/Frame.qml
@@ -56,8 +56,8 @@ AbstractFrame {
id: content
x: control.leftPadding
y: control.topPadding
- width: parent.width - control.leftPadding - control.rightPadding
- height: parent.height - control.topPadding - control.bottomPadding
+ width: control.availableWidth
+ height: control.availableHeight
}
background: Rectangle {