aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-11-17 10:31:25 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-11-17 10:24:21 +0000
commit6a86efd93906c688b22b8a847e9c7d380d951dab (patch)
tree99a720d34858efcc1af8e3526e49859a48ff7088 /examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
parent884a754ab44a95263fab13972433ae2d9327b45f (diff)
Gallery: improve designer compatibility
Get rid of some unnecessary Math.min/max() calculations, and let the controls just stay at their implicit size. As for the buttons, we can use ColumnLayout + Layout.fillWidth to ensure that they all have the same size. Change-Id: Iaed29b330d7edc1f5d2c05d8815a559d52d52bcc Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/ProgressBarPage.qml')
-rw-r--r--examples/quickcontrols2/gallery/pages/ProgressBarPage.qml4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml b/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
index 1548192f..a2646fd0 100644
--- a/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
+++ b/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
@@ -44,8 +44,6 @@ import QtQuick.Controls 2.1
ScrollablePage {
id: page
- readonly property int itemWidth: Math.max(bar.implicitWidth, page.availableWidth / 3)
-
Column {
spacing: 40
width: parent.width
@@ -61,13 +59,11 @@ ScrollablePage {
ProgressBar {
id: bar
value: 0.5
- width: itemWidth
anchors.horizontalCenter: parent.horizontalCenter
}
ProgressBar {
indeterminate: true
- width: itemWidth
anchors.horizontalCenter: parent.horizontalCenter
}
}