diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-10-19 11:25:39 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-10-19 14:34:07 (GMT) |
commit | da4d5207f0a97d7e4fcc32e43a6a6e959c8f293a (patch) | |
tree | 38765d4cdd7e5f514a26b9c9714628e95e04ceab /src/corelib | |
parent | 6c2fc9960ef1f96687025df0c0a6cf2df7dbba03 (diff) | |
download | Qt-da4d5207f0a97d7e4fcc32e43a6a6e959c8f293a.zip Qt-da4d5207f0a97d7e4fcc32e43a6a6e959c8f293a.tar.gz Qt-da4d5207f0a97d7e4fcc32e43a6a6e959c8f293a.tar.bz2 |
Make sure QGraphicsSceneHoverLeave event has non-null widget pointer.
When constructing QGraphicsSceneHoverLeave event out of QEvent::Leave
we should set the widget pointer to the graphicsview's viewport, th
same as we do for other graphicsscene events like QGraphicsSceneMouseEvent.
Reviewed-by: Yoann Lopes
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/kernel/qcoreevent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreevent.h b/src/corelib/kernel/qcoreevent.h index 9d3513a..4c91aaf 100644 --- a/src/corelib/kernel/qcoreevent.h +++ b/src/corelib/kernel/qcoreevent.h @@ -328,6 +328,7 @@ private: friend class QETWidget; friend class QGraphicsView; friend class QGraphicsViewPrivate; + friend class QGraphicsScene; friend class QGraphicsScenePrivate; #ifndef QT_NO_GESTURES friend class QGestureManager; |