diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-19 10:58:26 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-19 12:39:19 (GMT) |
commit | 933bddab13c2cec231beb623f77c7fbb0bbbccd5 (patch) | |
tree | 77bbbe35cf03a84923d3dbed725939838194514c /src/gui/graphicsview/qgraphicsview.cpp | |
parent | fbe0edc109a252efb6f2f53d04537c33f2e91fba (diff) | |
download | Qt-933bddab13c2cec231beb623f77c7fbb0bbbccd5.zip Qt-933bddab13c2cec231beb623f77c7fbb0bbbccd5.tar.gz Qt-933bddab13c2cec231beb623f77c7fbb0bbbccd5.tar.bz2 |
Refactor QGraphicsScene::drawSubtreeRecursive.
It's easier to read and maintain the code now. This version is also
faster than the old one and makes it easier to implement another
cut-off I'm working on.
All auto-tests still pass. Examples/demos run fine.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 553d71c..1ba87ec 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -3298,8 +3298,8 @@ void QGraphicsView::paintEvent(QPaintEvent *event) // Items if (!(d->optimizationFlags & IndirectPainting)) { - d->scene->d_func()->drawSubtreeRecursive(0, &painter, viewTransform, &d->exposedRegion, - viewport(), 0); + d->scene->d_func()->drawItems(&painter, viewTransformed ? &viewTransform : 0, + &d->exposedRegion, viewport()); } else { // Find all exposed items bool allItems = false; |