aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/TextAreaPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/TextAreaPage.qml')
-rw-r--r--examples/quickcontrols2/gallery/pages/TextAreaPage.qml38
1 files changed, 15 insertions, 23 deletions
diff --git a/examples/quickcontrols2/gallery/pages/TextAreaPage.qml b/examples/quickcontrols2/gallery/pages/TextAreaPage.qml
index 696b1983..97669f2f 100644
--- a/examples/quickcontrols2/gallery/pages/TextAreaPage.qml
+++ b/examples/quickcontrols2/gallery/pages/TextAreaPage.qml
@@ -41,34 +41,26 @@
import QtQuick 2.6
import QtQuick.Controls 2.1
-Flickable {
- id: flickable
- contentHeight: pane.height
+ScrollablePage {
+ id: page
- Pane {
- id: pane
+ Column {
+ spacing: 40
width: parent.width
- Column {
- spacing: 40
- anchors.fill: parent
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "TextArea is a multi-line text editor."
- }
+ Label {
+ width: parent.width
+ wrapMode: Label.Wrap
+ horizontalAlignment: Qt.AlignHCenter
+ text: "TextArea is a multi-line text editor."
+ }
- TextArea {
- width: Math.max(implicitWidth, Math.min(implicitWidth * 3, pane.availableWidth / 3))
- anchors.horizontalCenter: parent.horizontalCenter
+ TextArea {
+ width: Math.max(implicitWidth, Math.min(implicitWidth * 3, pane.availableWidth / 3))
+ anchors.horizontalCenter: parent.horizontalCenter
- wrapMode: TextArea.Wrap
- text: "TextArea\n...\n...\n..."
- }
+ wrapMode: TextArea.Wrap
+ text: "TextArea\n...\n...\n..."
}
}
-
- ScrollIndicator.vertical: ScrollIndicator { }
}