summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.cpp
diff options
context:
space:
mode:
authorBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-03-27 17:53:02 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-06 11:49:51 (GMT)
commit73ce29e6bc09651a4e70b5e61c36d56e568905c7 (patch)
treecdf8db48464c8585960d08338d5e341980e08c30 /src/gui/graphicsview/qgraphicsview.cpp
parent23c73210fc79055f4bac44de0e43f9917f8d0e7f (diff)
downloadQt-73ce29e6bc09651a4e70b5e61c36d56e568905c7.zip
Qt-73ce29e6bc09651a4e70b5e61c36d56e568905c7.tar.gz
Qt-73ce29e6bc09651a4e70b5e61c36d56e568905c7.tar.bz2
Fixes: Simplify the cut-offs and be more agressive :-)
AutoTest: Still pass. Details: It's easier to read and understand the code now.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index 4db2257..f0d360a 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -853,8 +853,11 @@ void QGraphicsViewPrivate::_q_updateLaterSlot()
const QList<QGraphicsItem *> &dirtyItems = scene->d_func()->dirtyItems;
for (int i = 0; i < dirtyItems.size(); ++i) {
const QGraphicsItem *item = dirtyItems.at(i);
- if (item->d_ptr->discardUpdateRequest())
+ if (item->d_ptr->discardUpdateRequest(/*ignoreClipping=*/false,
+ /*ignoreVisibleBit=*/false,
+ /*ignoreDirtyBit=*/true)) {
continue;
+ }
QTransform x = item->sceneTransform() * viewTransform;
updateRect(x.mapRect(item->boundingRect()).toAlignedRect() & vr);
}