Fixed mouse grabbing preventing popups from being closed.
authorSamuel Rødal <samuel.rodal@nokia.com>
Mon, 18 Jun 2012 13:53:30 +0000 (15:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 22:58:22 +0000 (00:58 +0200)
commitec2e99ead57bfa81c65f6c8435f20d9fb0ae4fd5
treea77af5b7b0ca027a557f3cd1a872ae9d0d64e1a7
parent98fd2eeb6292d3391b7364493b960f818896fa23
Fixed mouse grabbing preventing popups from being closed.

The pointer grabbing leads to fake Enter events being sent to the
Qt::Popup window, preventing it from closing since QWidget::underMouse()
returns true. We should only send Enter events if the mouse is actually
inside the widget.

Change-Id: I4ba3fb08943580f93ad4337ff0227becd647767e
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/widgets/kernel/qapplication.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp