diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-10-18 14:26:12 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:55 (GMT) |
commit | 37d45c6997e912ff98376fa64d60f502a6705b79 (patch) | |
tree | eeab7e320701feeaf3742a7417174f3aa9ae2d70 /src/gui | |
parent | b06610a65229cd1cb5aa5d9d5145e976e99f631c (diff) | |
download | Qt-37d45c6997e912ff98376fa64d60f502a6705b79.zip Qt-37d45c6997e912ff98376fa64d60f502a6705b79.tar.gz Qt-37d45c6997e912ff98376fa64d60f502a6705b79.tar.bz2 |
Send the hoverLeave not properly sent on the widget inside QGPW.
We need to send the hover leave event on the proper receiver in case
the widget we embed in a complex hierarchy not the widget itself.
Task-number:QTBUG-6986
Reviewed-by:bnilsen
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/graphicsview/qgraphicsproxywidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsproxywidget.cpp b/src/gui/graphicsview/qgraphicsproxywidget.cpp index 002aa8e..bffa470 100644 --- a/src/gui/graphicsview/qgraphicsproxywidget.cpp +++ b/src/gui/graphicsview/qgraphicsproxywidget.cpp @@ -266,8 +266,8 @@ void QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent(QGraphicsSceneMouseEvent } if (!lastWidgetUnderMouse) { - QApplicationPrivate::dispatchEnterLeave(embeddedMouseGrabber ? embeddedMouseGrabber : widget, 0); - lastWidgetUnderMouse = widget; + QApplicationPrivate::dispatchEnterLeave(embeddedMouseGrabber ? embeddedMouseGrabber : receiver, 0); + lastWidgetUnderMouse = receiver; } // Map event position from us to the receiver |