diff options
author | Rafael Roquetto <rafael.roquetto.qnx@kdab.com> | 2012-11-27 16:24:30 -0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-28 13:07:28 +0100 |
commit | f4b80c1210e444ad7454abfb80ba166ce2e2a5f2 (patch) | |
tree | 23634c252b7545f0a1798932b1c38c36881ebd1b /src/widgets/graphicsview/qgraphicsscene.cpp | |
parent | d378912d2363b0eb072e8da3aabf836dfe9d1e02 (diff) |
Remove invalid assert from QGraphicsScene
This assert has become invalid since commit 40fef403. After that commit, the
'origin' mentioned by the assert is not necessarily the first item of
cachedItemsUnderMouse, since it origin can be reassigned at line 5735.
Change-Id: Ibc0739b9fe31be3cc74110225940e9e173f585e0
Reviewed-by: Bernd Weimer <bweimer@rim.com>
Reviewed-by: Denis Dzyubenko <denis@ddenis.info>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsscene.cpp')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsscene.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsscene.cpp b/src/widgets/graphicsview/qgraphicsscene.cpp index c19dca14ff..311625761c 100644 --- a/src/widgets/graphicsview/qgraphicsscene.cpp +++ b/src/widgets/graphicsview/qgraphicsscene.cpp @@ -5841,7 +5841,6 @@ bool QGraphicsScenePrivate::sendTouchBeginEvent(QGraphicsItem *origin, QTouchEve firstTouchPoint.scenePos(), static_cast<QWidget *>(touchEvent->target())); } - Q_ASSERT(cachedItemsUnderMouse.first() == origin); // Set focus on the topmost enabled item that can take focus. bool setFocus = false; |