diff options
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/GroupBoxPage.qml')
-rw-r--r-- | examples/quickcontrols2/gallery/pages/GroupBoxPage.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml b/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml index 52676721..c4ceb45d 100644 --- a/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml +++ b/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml @@ -41,14 +41,14 @@ import QtQuick 2.6 import QtQuick.Controls 2.1 -Pane { - id: pane +ScrollablePage { + id: page - readonly property int itemWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 3, pane.availableWidth / 3 * 2)) + readonly property int itemWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 3, page.availableWidth / 3 * 2)) Column { spacing: 40 - anchors.fill: parent + width: parent.width Label { width: parent.width @@ -63,7 +63,7 @@ Pane { Column { spacing: 20 - width: pane.itemWidth + width: page.itemWidth RadioButton { text: "First" |