summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-17 12:27:46 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-17 12:27:46 (GMT)
commit5d682567d1acb79b2fa55ae8f005c5dcdc9aacb7 (patch)
tree10b239dc69cf29410471b48e977de382e60fedd3 /src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
parent8a0e002ccc762ef3edbc3c9ad91b4d6017cb91bb (diff)
downloadQt-5d682567d1acb79b2fa55ae8f005c5dcdc9aacb7.zip
Qt-5d682567d1acb79b2fa55ae8f005c5dcdc9aacb7.tar.gz
Qt-5d682567d1acb79b2fa55ae8f005c5dcdc9aacb7.tar.bz2
API / code review for QGraphicsSceneIndex (internal API).
A few minor modifications only, marked some things as ### obsolete, removed the public get/set for the index (it's internal anyway).
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp b/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
index 76fd218..969d3c5 100644
--- a/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
+++ b/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
@@ -589,12 +589,16 @@ void QGraphicsSceneBspTreeIndex::prepareBoundingRectChange(const QGraphicsItem *
\a deviceTransform is the transformation apply to the view.
*/
-QList<QGraphicsItem *> QGraphicsSceneBspTreeIndex::estimateItems(const QRectF &rect, Qt::SortOrder order, const QTransform &deviceTransform) const
+QList<QGraphicsItem *> QGraphicsSceneBspTreeIndex::estimateItems(const QRectF &rect, Qt::SortOrder order,
+ const QTransform &deviceTransform) const
{
Q_D(const QGraphicsSceneBspTreeIndex);
const_cast<QGraphicsSceneBspTreeIndexPrivate*>(d)->purgeRemovedItems();
const_cast<QGraphicsSceneBspTreeIndexPrivate*>(d)->_q_updateSortCache();
+ // ### Handle items that ignore transformations
+ Q_UNUSED(deviceTransform);
+
QList<QGraphicsItem *> rectItems = d->bsp.items(rect);
// Fill in with any unindexed items
for (int i = 0; i < d->unindexedItems.size(); ++i) {