diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-05 09:02:46 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:35:24 (GMT) |
commit | f31b4a7163cee11c306e9f4fcaab094d9c38cb68 (patch) | |
tree | be1c00628d02773ed0f7ff75d38fe1199f59012d | |
parent | b7b0f7250dcf07a4da5d80ccc48accb156f25092 (diff) | |
download | Qt-f31b4a7163cee11c306e9f4fcaab094d9c38cb68.zip Qt-f31b4a7163cee11c306e9f4fcaab094d9c38cb68.tar.gz Qt-f31b4a7163cee11c306e9f4fcaab094d9c38cb68.tar.bz2 |
Fix interaction with QGraphicsWidgets that are a window.
Use itemCollidesWithPath, the helper function.
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 8958e1b..de9d865 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -1444,7 +1444,7 @@ void QGraphicsScenePrivate::recursive_items_helper(QGraphicsItem *item, QRectF r if (keep && (mode == Qt::ContainsItemShape || mode == Qt::IntersectsItemShape)) { QPainterPath rectPath; rectPath.addRect(rect); - keep = item->collidesWithPath(transform.inverted().map(rectPath), mode); + keep = itemCollidesWithPath(item, transform.inverted().map(rectPath), mode); } } |