2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2015-12-14 18:06:53 +00:00
|
|
|
|
2020-03-26 16:01:51 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
2015-12-14 18:06:53 +00:00
|
|
|
|
2016-09-29 05:55:30 +00:00
|
|
|
ScrollablePage {
|
|
|
|
id: page
|
2015-12-14 18:06:53 +00:00
|
|
|
|
2016-09-29 05:55:30 +00:00
|
|
|
readonly property int itemWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 3, page.availableWidth / 3 * 2))
|
2015-12-18 15:32:00 +00:00
|
|
|
|
2015-12-14 18:06:53 +00:00
|
|
|
Column {
|
|
|
|
spacing: 40
|
2016-09-29 05:55:30 +00:00
|
|
|
width: parent.width
|
2015-12-14 18:06:53 +00:00
|
|
|
|
|
|
|
Label {
|
|
|
|
width: parent.width
|
|
|
|
wrapMode: Label.Wrap
|
2015-12-18 15:32:00 +00:00
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
2023-02-23 13:17:52 +00:00
|
|
|
text: qsTr("Frame is used to layout a logical group of controls together, within a visual frame.")
|
2015-12-14 18:06:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Frame {
|
2025-05-23 08:23:27 +00:00
|
|
|
enabled: !GalleryConfig.disabled
|
2015-12-18 15:32:00 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2015-12-14 18:06:53 +00:00
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: 20
|
2016-09-29 05:55:30 +00:00
|
|
|
width: page.itemWidth
|
2015-12-14 18:06:53 +00:00
|
|
|
|
|
|
|
RadioButton {
|
2023-02-23 13:17:52 +00:00
|
|
|
text: qsTr("First")
|
2015-12-14 18:06:53 +00:00
|
|
|
checked: true
|
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
RadioButton {
|
2015-12-18 15:32:00 +00:00
|
|
|
id: button
|
2023-02-23 13:17:52 +00:00
|
|
|
text: qsTr("Second")
|
2015-12-14 18:06:53 +00:00
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
RadioButton {
|
2023-02-23 13:17:52 +00:00
|
|
|
text: qsTr("Third")
|
2015-12-14 18:06:53 +00:00
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|