1
0

qml: ElDialog assure close behavior is consistent with allowClose property

This commit is contained in:
Sander van Grieken
2023-02-23 20:44:25 +01:00
parent 278486602b
commit e511701c74

View File

@@ -12,6 +12,10 @@ Dialog {
close()
}
closePolicy: allowClose
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
: Popup.NoAutoClose
onOpenedChanged: {
if (opened) {
app.activeDialogs.push(abstractdialog)
@@ -48,6 +52,7 @@ Dialog {
leftPadding: constants.paddingXLarge
topPadding: constants.paddingXLarge
bottomPadding: constants.paddingXLarge
rightPadding: constants.paddingXLarge
font.bold: true
font.pixelSize: constants.fontSizeMedium
}