Add hideOnWindowDeactivate to PlasmaComponents.Dialog
Summary: When using Dialog or QueryDialog it should be possible to set hideOnWindowDeactivate flag. Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D24825
This commit is contained in:
parent
e3abfcfc16
commit
96b7fc21f5
@ -107,6 +107,11 @@ Item {
|
||||
*/
|
||||
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 @@ Item {
|
||||
id: coreDialog
|
||||
//windowFlags: Qt.Popup
|
||||
visualParent: root.visualParent
|
||||
hideOnWindowDeactivate: root.hideOnWindowDeactivate
|
||||
location: root.location
|
||||
visible: false
|
||||
onVisibleChanged: {
|
||||
|
Loading…
Reference in New Issue
Block a user