move mousearea into dialog

This commit is contained in:
Michael Zanetti 2019-12-01 12:45:26 +01:00
parent a1e550a260
commit 62e87c1f53
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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