Ungrab mouse when FocusAboutToChange instead of Leave
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Fri, 11 Jan 2013 13:48:32 +0000 (14:48 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 24 Jan 2013 17:17:04 +0000 (18:17 +0100)
commit6933b7e8e6dc279a8eb34e1f4c60bc109dfb7d26
tree79e41aa9c624708f8dfe52621a5c49f008bc51e4
parentd4425318801c055127dba04792ebf4ef69643b6e
Ungrab mouse when FocusAboutToChange instead of Leave

Commit 7b2e2117162594a2d0234bb02408f5b5a446488b
introduced a regression in mouse handling:
When moving the mouse out of the window it would cancel
all further mouse events. That is actually not wanted
(eg scroll bars).
Instead ungrab the mouse when the focus changes,
that means the mouse handling with popups works and the
scrollbar use case is also fixed.

All the tests related to this seem quite timing sensitive,
so try some more QTRY_VERIFY.
Remove the parallel_test so that more cpu time will actually
let the tests pass more reliably.

Change-Id: I90586b05f461d3762728a466d71bcb967e03d14b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/quick/items/qquickwindow.cpp
tests/auto/quick/qquickflickable/qquickflickable.pro
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
tests/auto/quick/qquickmousearea/qquickmousearea.pro
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp