Flickable and MouseArea were too eager to take/keep mouse grab.
authorMartin Jones <martin.jones@nokia.com>
Wed, 24 Nov 2010 04:28:18 +0000 (14:28 +1000)
committerMartin Jones <martin.jones@nokia.com>
Wed, 24 Nov 2010 04:28:18 +0000 (14:28 +1000)
commit810e21d9e404aa2fcb602cb68bfd892387b234e7
tree00fc61dbeb33b522b0fc5e3e56ddf87a30582e7a
parente3da9407ad85a65abce72f8a32230ec4f2f95369
Flickable and MouseArea were too eager to take/keep mouse grab.

This meant that they would sometimes act upon a drag immediately,
rather than waiting for a nested area to take the grab.  This resulted
in a short jump before future events were handled by the nested item.

Task-number: QTBUG-15568
Reviewed-by: Bea Lam
15 files changed:
src/declarative/graphicsitems/qdeclarativeflickable.cpp
src/declarative/graphicsitems/qdeclarativemousearea.cpp
tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.0.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.1.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.2.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.3.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.4.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.5.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.6.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.7.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.8.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.9.png [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/data/nested.qml [new file with mode: 0644]
tests/auto/declarative/qmlvisual/qdeclarativemousearea/nested.qml [new file with mode: 0644]