aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/TextFieldPage.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/TextFieldPage.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/TextFieldPage.qml')
-rw-r--r--examples/quickcontrols2/gallery/pages/TextFieldPage.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/quickcontrols2/gallery/pages/TextFieldPage.qml b/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
index 9917da33..1b22fd08 100644
--- a/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
+++ b/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
@@ -58,7 +58,6 @@ ScrollablePage {
TextField {
id: field
placeholderText: "TextField"
- width: Math.max(implicitWidth, Math.min(implicitWidth * 2, pane.availableWidth / 3))
anchors.horizontalCenter: parent.horizontalCenter
}
}