move mousearea into dialog
This commit is contained in:
parent
a1e550a260
commit
62e87c1f53
@ -415,7 +415,7 @@ ApplicationWindow {
|
||||
}
|
||||
|
||||
|
||||
// NOTE: If using a Dialog, make sure closePolicy does not contain Dialo.CloseOnPressOutside
|
||||
// NOTE: If using a Dialog, make sure closePolicy does not contain Dialog.CloseOnPressOutside
|
||||
// or the virtual keyboard will close when pressing it...
|
||||
|
||||
// https://bugreports.qt.io/browse/QTBUG-56918
|
||||
|
||||
@ -14,6 +14,13 @@ Dialog {
|
||||
|
||||
standardButtons: Dialog.Ok
|
||||
|
||||
MouseArea {
|
||||
parent: app.overlay
|
||||
anchors.fill: parent
|
||||
z: -1
|
||||
onPressed: mouse.accepted = true
|
||||
}
|
||||
|
||||
header: Item {
|
||||
implicitHeight: headerRow.height + app.margins * 2
|
||||
implicitWidth: parent.width
|
||||
|
||||
Reference in New Issue
Block a user