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
|
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
|
* This signal is emitted when the user accepts the dialog's request or the
|
||||||
* accept() method is called.
|
* accept() method is called.
|
||||||
@ -256,6 +261,7 @@ Item {
|
|||||||
id: coreDialog
|
id: coreDialog
|
||||||
//windowFlags: Qt.Popup
|
//windowFlags: Qt.Popup
|
||||||
visualParent: root.visualParent
|
visualParent: root.visualParent
|
||||||
|
hideOnWindowDeactivate: root.hideOnWindowDeactivate
|
||||||
location: root.location
|
location: root.location
|
||||||
visible: false
|
visible: false
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user