Fix hover after press event
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Fri, 26 Apr 2013 14:18:54 +0000 (16:18 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 27 Apr 2013 18:36:57 +0000 (20:36 +0200)
commitd054755e9e452df05fb590510d25bf4167b97af7
tree1f419b2c75bce91a2a5cb4da351602a6609f1622
parent53e317468626284fe26877659dff551ce3bc0e55
Fix hover after press event

When a mouse press event was rejected,
we would unconditionally cancel the hover
and claim that the mouse is not contained any more.

Instead check if the mouse left and only then cancel
the hover state.

Task-number: QTBUG-30783

Change-Id: I5fac6f3a1f2807ef03e07982c603492d40d2a249
Reviewed-by: Florian Boucault <florian@boucault.net>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquickmousearea.cpp
tests/auto/quick/qquickmousearea/data/hoverAfterPress.qml [new file with mode: 0644]
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp