aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-09-29 07:55:30 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-09-29 13:15:09 +0000
commit5d2c242d2d3fd6af724514ee00a6440864be0ade (patch)
tree3e8ffcafda4348bbf77c7682d16a2d1829331f8d /examples/quickcontrols2/gallery/pages/TextFieldPage.qml
parentc56b68bd76a0a608824054e09ec6e9ab34295188 (diff)
Gallery: make most pages scrollable
Add a ScrollablePage type, which provides the scrolling behavior. The available space can be quite limited, especially in landscape on low resolution devices. Change-Id: I4d2911aa6bfa6d8573a1385b5a06ef2cf3e2e548 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.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quickcontrols2/gallery/pages/TextFieldPage.qml b/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
index cbae30cd..9092e10d 100644
--- a/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
+++ b/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
@@ -41,12 +41,12 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-Pane {
- id: pane
+ScrollablePage {
+ id: page
Column {
spacing: 40
- anchors.fill: parent
+ width: parent.width
Label {
width: parent.width