diff --git a/src/declarativeimports/plasmacomponents/qml/Dialog.qml b/src/declarativeimports/plasmacomponents/qml/Dialog.qml --- a/src/declarativeimports/plasmacomponents/qml/Dialog.qml +++ b/src/declarativeimports/plasmacomponents/qml/Dialog.qml @@ -107,6 +107,11 @@ */ property int location: PlasmaCore.Types.Floating + /** + * Hide dialog when focus is lost. + */ + property bool hideOnWindowDeactivate: false + /** * This signal is emitted when the user accepts the dialog's request or the * accept() method is called. @@ -256,6 +261,7 @@ id: coreDialog //windowFlags: Qt.Popup visualParent: root.visualParent + hideOnWindowDeactivate: root.hideOnWindowDeactivate location: root.location visible: false onVisibleChanged: {