Handle MouseArea.enabled = false after mouse is pressed.
authorMartin Jones <martin.jones@nokia.com>
Mon, 5 Mar 2012 05:07:27 +0000 (15:07 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Mar 2012 22:31:48 +0000 (23:31 +0100)
commit3f62886ac84b31c5c8f90205583dc65e811ad20b
tree5e78818004f64e491621265d7af8a73ee5b9712c
parent43ffdc3fc02eb058d7d458cb16a9c3cf07ea68eb
Handle MouseArea.enabled = false after mouse is pressed.

Currently this leaves the MouseArea in a broken state,
i.e. still in pressed state, and the next press after
it is re-enabled is ignored.

In this case we now allow subsequent mouse move or
release events to continue. Following the release,
no further press will be accepted.

Change-Id: I65a890da90e2166ad568505fffdbd3db6c97165b
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/quick/items/qquickmousearea.cpp
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp