1
0

qml: ElDialog now defaults to parent on Overlay.overlay

This was replicated in basically all ElDialog derived dialogs
This commit is contained in:
Sander van Grieken
2023-03-20 16:52:21 +01:00
parent b8d4ccd432
commit 677e1259df
30 changed files with 8 additions and 174 deletions

View File

@@ -18,16 +18,10 @@ ElDialog {
signal yesClicked
parent: Overlay.overlay
modal: true
z: 1 // raise z so it also covers dialogs using overlay as parent
anchors.centerIn: parent
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {
@@ -36,7 +30,7 @@ ElDialog {
Layout.alignment: Qt.AlignHCenter
TextArea {
id: message
Layout.preferredWidth: Overlay.overlay.width *2/3
Layout.preferredWidth: dialog.parent.width * 2/3
readOnly: true
wrapMode: TextInput.WordWrap
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText