From a2d75c555880ea719a76d9e38504a80c1fa437a4 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Tue, 30 Apr 2013 15:34:49 +0200 Subject: apply standard behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to documentation hoverLeaveEvent calls update(), which happens in QGraphicsItem. As QGraphicsWidget has not been calling parent implementation that did not happen and e.g. animatedtiles example did not work correctly. Change-Id: Ia25dda967bd21298c763996589c63dc173ba6b6a Reviewed-by: Samuel Rødal Reviewed-by: Oliver Wolff --- src/widgets/graphicsview/qgraphicswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/widgets/graphicsview/qgraphicswidget.cpp b/src/widgets/graphicsview/qgraphicswidget.cpp index ddd3ee2e68..3d902d9227 100644 --- a/src/widgets/graphicsview/qgraphicswidget.cpp +++ b/src/widgets/graphicsview/qgraphicswidget.cpp @@ -1673,7 +1673,7 @@ void QGraphicsWidget::hoverMoveEvent(QGraphicsSceneHoverEvent *event) */ void QGraphicsWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { - Q_UNUSED(event); + QGraphicsObject::hoverLeaveEvent(event); } /*! -- cgit v1.2.3