aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
diff options
context:
space:
mode:
authorSanthosh Kumar <santhosh.kumar.selvaraj@qt.io>2024-01-19 18:06:58 +0100
committerSanthosh Kumar <santhosh.kumar.selvaraj@qt.io>2024-02-21 14:27:54 +0100
commit8d3ed392bb51dc70c04aa521f1380616a78be7a9 (patch)
treecbc8915d96f43b3e94e562ba1128b0508dc59d59 /tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
parent7b4221002e12716868ff21d462bc427795db4e37 (diff)
Update manual tests and examples for change in default size policy
The size policy of item updated as part of task QTBUG-117597. This patch update existing examples and manual tests that depends on quick layout to embrace size policy change. Task-number: QTBUG-117597 Pick-to: 6.7 Change-Id: I68469a3bba3c4d3e5ed4b6eae0fd765b5206efc0 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/manual/quickdialogs/dialogs/MessageDialogPage.qml')
-rw-r--r--tests/manual/quickdialogs/dialogs/MessageDialogPage.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml b/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
index 1fa2deef18..9097ff7ba6 100644
--- a/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
+++ b/tests/manual/quickdialogs/dialogs/MessageDialogPage.qml
@@ -20,6 +20,7 @@ ColumnLayout {
title: qsTr("Dialog properties")
Layout.fillWidth: true
+ Layout.fillHeight: false
GridLayout {
columns: 2
@@ -41,17 +42,20 @@ ColumnLayout {
RadioButton {
text: qsTr("Qt.NonModal")
+ Layout.fillWidth: false
readonly property int modality: Qt.NonModal
}
RadioButton {
text: qsTr("Qt.WindowModal")
checked: true
+ Layout.fillWidth: false
readonly property int modality: Qt.WindowModal
}
RadioButton {
text: qsTr("Qt.ApplicationModal")
+ Layout.fillWidth: false
readonly property int modality: Qt.ApplicationModal
}
@@ -65,6 +69,7 @@ ColumnLayout {
text: messageBox.result === 1 ? qsTr("Accepted") : qsTr("Rejected")
readOnly: true
enabled: false
+ Layout.fillWidth: false
}
Label {
@@ -73,6 +78,7 @@ ColumnLayout {
TextField {
id: titleTextField
text: qsTr("Hello World")
+ Layout.fillWidth: false
}
}
}
@@ -81,6 +87,7 @@ ColumnLayout {
title: qsTr("MessageBox properties")
Layout.fillWidth: true
+ Layout.fillHeight: false
ColumnLayout {
RowLayout {
@@ -90,6 +97,7 @@ ColumnLayout {
TextField {
id: textProperty
text: qsTr("default text")
+ Layout.fillWidth: false
}
}
RowLayout {
@@ -99,6 +107,7 @@ ColumnLayout {
TextField {
id: informativeTextProperty
text: qsTr("default informative text")
+ Layout.fillWidth: false
}
}
@@ -116,6 +125,8 @@ ColumnLayout {
border.width: 1
}
Layout.maximumWidth: ApplicationWindow.window.width * 0.5
+ Layout.fillWidth: false
+ Layout.fillHeight: false
wrapMode: TextEdit.WordWrap
text: qsTr("This text will be displayed in the 'detailed text' textArea, which the user must press a button to see.\n"
+ "If this is an empty string, the button will not be visible.")
@@ -125,102 +136,119 @@ ColumnLayout {
CheckBox {
id: okCheckbox
text: qsTr("Ok")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Ok : MessageDialog.NoButton
}
CheckBox {
id: saveCheckbox
text: qsTr("Save")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Save : MessageDialog.NoButton
}
CheckBox {
id: saveAllCheckbox
text: qsTr("Save All")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.SaveAll : MessageDialog.NoButton
}
CheckBox {
id: openCheckbox
text: qsTr("Open")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Open : MessageDialog.NoButton
}
CheckBox {
id: yesCheckbox
text: qsTr("Yes")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Yes : MessageDialog.NoButton
}
CheckBox {
id: yesToAllCheckbox
text: qsTr("Yes to all")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.YesToAll : MessageDialog.NoButton
}
CheckBox {
id: noCheckbox
text: qsTr("No")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.No : MessageDialog.NoButton
}
CheckBox {
id: noToAllCheckbox
text: qsTr("No to all")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.NoToAll : MessageDialog.NoButton
}
CheckBox {
id: abortCheckbox
text: qsTr("Abort")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Abort : MessageDialog.NoButton
}
CheckBox {
id: retryCheckbox
text: qsTr("Retry")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Retry : MessageDialog.NoButton
}
CheckBox {
id: ignoreCheckbox
text: qsTr("Ignore")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Ignore : MessageDialog.NoButton
}
CheckBox {
id: closeCheckbox
text: qsTr("Close")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Close : MessageDialog.NoButton
}
CheckBox {
id: cancelCheckbox
text: qsTr("Cancel")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Cancel : MessageDialog.NoButton
}
CheckBox {
id: discardCheckbox
text: qsTr("Discard")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Discard : MessageDialog.NoButton
}
CheckBox {
id: helpCheckbox
text: qsTr("Help")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Help : MessageDialog.NoButton
}
CheckBox {
id: applyCheckbox
text: qsTr("Apply")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Apply : MessageDialog.NoButton
}
CheckBox {
id: resetCheckbox
text: qsTr("Reset")
+ Layout.fillWidth: false
readonly property int value: checked ? MessageDialog.Reset : MessageDialog.NoButton
}