Fix excess enter events when showing modal dialog on button press
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Tue, 30 Oct 2012 13:54:43 +0000 (15:54 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 7 Nov 2012 07:44:38 +0000 (08:44 +0100)
commitdde3f6a934ae26c8e92b0132b1bb85c0aa841ac1
tree5af8991258d8f6ad504b14ba499044ed3bf14f6e
parent6dcfbe552af519bc8cb9c9b4203c1a7d191fcdb2
Fix excess enter events when showing modal dialog on button press

QApplicationPrivate::leaveAfterRelease was not properly cleared when
mouse event handling was interrupted by a modal dialog, which caused
every mouse move over the modal dialog to trigger enter event to the
widget under cursor.

Fixed by clearing QApplicationPrivate::leaveAfterRelease if mouse event
without any buttons pressed is handled.

Task-number: QTBUG-27643
Change-Id: I4f31daa656bc643c88e5338282a671ae2077e255
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/widgets/kernel/qapplication.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp