diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-05 08:23:37 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:35:10 (GMT) |
commit | a10f1c955f9cbf54909ce2264279efa9d0423ecd (patch) | |
tree | 07625642974f8df5232fbacb36158809222b8929 /src/gui/graphicsview/qgraphicsscene.cpp | |
parent | 1c0599289a3da43b0a7cdb38eebe05d45f69ad9c (diff) | |
download | Qt-a10f1c955f9cbf54909ce2264279efa9d0423ecd.zip Qt-a10f1c955f9cbf54909ce2264279efa9d0423ecd.tar.gz Qt-a10f1c955f9cbf54909ce2264279efa9d0423ecd.tar.bz2 |
Fix tst_QGraphicsScene::itemIndexMethod(), typo in estimateItemsInRect()
Don't skip all indexed items that aren't transparent ;-).
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-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 6c78ca9..49ffb32 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -422,7 +422,7 @@ QList<QGraphicsItem *> QGraphicsScenePrivate::estimateItemsInRect(const QRectF & if (QGraphicsItem *item = indexedItems.at(i)) { if (item->d_ptr->ancestorFlags & QGraphicsItemPrivate::AncestorClipsChildren) continue; - if (item->d_ptr->visible && item->d_ptr->isFullyTransparent()) + if (item->d_ptr->visible && !item->d_ptr->isFullyTransparent()) itemsInRect << item; } } |