qml: ElDialog assure close behavior is consistent with allowClose property
This commit is contained in:
@@ -12,6 +12,10 @@ Dialog {
|
|||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closePolicy: allowClose
|
||||||
|
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||||
|
: Popup.NoAutoClose
|
||||||
|
|
||||||
onOpenedChanged: {
|
onOpenedChanged: {
|
||||||
if (opened) {
|
if (opened) {
|
||||||
app.activeDialogs.push(abstractdialog)
|
app.activeDialogs.push(abstractdialog)
|
||||||
@@ -48,6 +52,7 @@ Dialog {
|
|||||||
leftPadding: constants.paddingXLarge
|
leftPadding: constants.paddingXLarge
|
||||||
topPadding: constants.paddingXLarge
|
topPadding: constants.paddingXLarge
|
||||||
bottomPadding: constants.paddingXLarge
|
bottomPadding: constants.paddingXLarge
|
||||||
|
rightPadding: constants.paddingXLarge
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: constants.fontSizeMedium
|
font.pixelSize: constants.fontSizeMedium
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user