don't close when clicking on empty spots

This commit is contained in:
Marco Martin 2012-08-17 15:43:21 +02:00
parent dc424465d8
commit 17a3b858a2

View File

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