aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/MenuPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/MenuPage.qml')
-rw-r--r--examples/quickcontrols2/gallery/pages/MenuPage.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/quickcontrols2/gallery/pages/MenuPage.qml b/examples/quickcontrols2/gallery/pages/MenuPage.qml
index 119be559..1e975bd0 100644
--- a/examples/quickcontrols2/gallery/pages/MenuPage.qml
+++ b/examples/quickcontrols2/gallery/pages/MenuPage.qml
@@ -39,14 +39,14 @@
****************************************************************************/
import QtQuick 2.6
-import Qt.labs.controls 1.0
+import QtQuick.Controls 2.0
-Pane {
- id: pane
+ScrollablePage {
+ id: page
Column {
spacing: 40
- anchors.fill: parent
+ width: parent.width
Label {
width: parent.width
@@ -59,7 +59,7 @@ Pane {
id: button
text: "Open"
anchors.horizontalCenter: parent.horizontalCenter
- width: Math.max(implicitWidth, Math.min(implicitWidth * 2, pane.availableWidth / 3))
+ width: Math.max(implicitWidth, Math.min(implicitWidth * 2, page.availableWidth / 3))
onClicked: optionsMenu.open()
}