aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2025-10-21 12:55:19 +0200
committerOliver Eftevaag <oliver.eftevaag@qt.io>2025-10-24 04:00:16 +0200
commite88b3ef6ccfe27e432c1892d49014921052ab401 (patch)
treee179a8573d2f33fea82d1974f07dfe7a5380b3b6 /tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
parent7719e91c98f2d96093313c102acb1e857d8addea (diff)
Dialogs manual test: add radio buttons for selecting popupType
This makes it more convenient to test changes to dialogs for both popup types. Only Popup.Item and Popup.Window are relevant for dialogs at the moment. Change-Id: I766030dee06d342c115941e83acb74afedc82921 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/manual/quickdialogs/dialogs/MessageDialogPage.qml')
-rw-r--r--tests/manual/quickdialogs/dialogs/MessageDialogPage.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml b/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
index 8ed211183b..6f33b95475 100644
--- a/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
+++ b/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
@@ -80,6 +80,30 @@ ColumnLayout {
text: qsTr("Hello World")
Layout.fillWidth: false
}
+ Label {
+ text: qsTr("popupType")
+ }
+ ButtonGroup {
+ id: popupTypeButtonGroup
+ buttons: popupTypeColumnLayout.children
+ }
+ ColumnLayout {
+ id: popupTypeColumnLayout
+
+ RadioButton {
+ text: qsTr("Popup.Item")
+ Layout.fillWidth: false
+
+ readonly property int popupType: Popup.Item
+ }
+ RadioButton {
+ text: qsTr("Popup.Window")
+ checked: true
+ Layout.fillWidth: false
+
+ readonly property int popupType: Popup.Window
+ }
+ }
}
}
@@ -276,6 +300,7 @@ ColumnLayout {
resetCheckbox.value
modality: modalityButtonGroup.checkedButton.modality
title: titleTextField.text
+ popupType: popupTypeButtonGroup.checkedButton.popupType
text: textProperty.text
informativeText: informativeTextProperty.text
detailedText: detailedTextProperty.text