MouseArea: Fix cancelling the double click when the windows loses focus
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 3 Sep 2014 18:42:04 +0000 (20:42 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Wed, 3 Sep 2014 20:22:55 +0000 (22:22 +0200)
commit222f22f626d8ae92500da440a4fb5f429da52407
tree7b10dc7d7a63ff0cb99629fc63e0ea3ff690a044
parent0de680c8e8fab36e386dca35e5008ffaa27e8ef6
MouseArea: Fix cancelling the double click when the windows loses focus

Without this, the next click is not received after the windows loses
focus while we double clicked but not released the mouse.

This may happen if the onDoubleClicked opens a new window

Change-Id: I86742de2bb1ea4c9657b9d5e90472d093293177d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquickmousearea.cpp
tests/auto/quick/qquickmousearea/data/pressedCanceled.qml
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp