Ungrab mouse upon leave event.
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Thu, 8 Nov 2012 16:43:46 +0000 (17:43 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 21 Nov 2012 10:58:16 +0000 (11:58 +0100)
commit7b2e2117162594a2d0234bb02408f5b5a446488b
tree39986fa636ea3b44b31f50af51582b7529994b27
parent3f86278a77cf4918a2698aae317a9766d9b63505
Ungrab mouse upon leave event.

The event signals that the mouse has left the window.
This happens also when a popup is shown (overlapping the original window).
Before a mouse area would still think it was in pressed state
when the popup (QWindow/QMenu) was shown and even after the popup was closed.

Change-Id: I6d32571f5a473610f60e9476850989ff665edb93
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/quick/items/qquickwindow.cpp
tests/auto/quick/touchmouse/tst_touchmouse.cpp