diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:05:57 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:43:43 (GMT) |
commit | 03428c4d2905cc73866f1d046b5cc1bedf1c38b3 (patch) | |
tree | 3c10401f0d77c999f9bf83b6b610bc1406024812 /src/gui/graphicsview/qgraphicsview.cpp | |
parent | e4d6cfb1be4a3ff71013362f1f827e3920524934 (diff) | |
download | Qt-03428c4d2905cc73866f1d046b5cc1bedf1c38b3.zip Qt-03428c4d2905cc73866f1d046b5cc1bedf1c38b3.tar.gz Qt-03428c4d2905cc73866f1d046b5cc1bedf1c38b3.tar.bz2 |
Remove one unnecessary argument from the recursive draw function.
We don't have to pass optimization flags; we already have a member
variable we can test for painter state protection.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index e685f9b..4891e81 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -3303,7 +3303,7 @@ void QGraphicsView::paintEvent(QPaintEvent *event) // Items if (!(d->optimizationFlags & IndirectPainting)) { d->scene->d_func()->drawSubtreeRecursive(0, &painter, viewTransform, &d->exposedRegion, - viewport(), d->optimizationFlags, 0); + viewport(), 0); } else { // Find all exposed items bool allItems = false; |