don't close when clicking on empty spots
This commit is contained in:
parent
dc424465d8
commit
17a3b858a2
@ -197,13 +197,15 @@ Item {
|
||||
|
||||
//state: "Hidden"
|
||||
|
||||
Item {
|
||||
MouseArea {
|
||||
id: mainItem
|
||||
x: dialog.margins.left
|
||||
y: dialog.margins.top
|
||||
width: parent.width - dialog.margins.left - dialog.margins.right
|
||||
height: parent.height - dialog.margins.top - dialog.margins.bottom
|
||||
|
||||
onClicked: mouse.accepted = true
|
||||
|
||||
// Consume all key events that are not processed by children
|
||||
Keys.onPressed: event.accepted = true
|
||||
Keys.onReleased: event.accepted = true
|
||||
|
Loading…
Reference in New Issue
Block a user