summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index 94547a5..e4decf9 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -802,15 +802,13 @@ void QGraphicsViewPrivate::processPendingUpdates()
return;
}
- if (optimizationFlags & QGraphicsView::DontAdjustForAntialiasing)
- dirtyBoundingRect.adjust(-1, -1, 1, 1);
- else
- dirtyBoundingRect.adjust(-2, -2, 2, 2);
-
if (viewportUpdateMode == QGraphicsView::BoundingRectViewportUpdate) {
- viewport->update((dirtyRegion + dirtyBoundingRect).boundingRect());
+ if (optimizationFlags & QGraphicsView::DontAdjustForAntialiasing)
+ viewport->update(dirtyBoundingRect.adjusted(-1, -1, 1, 1));
+ else
+ viewport->update(dirtyBoundingRect.adjusted(-2, -2, 2, 2));
} else {
- viewport->update(dirtyRegion + dirtyBoundingRect); // Already adjusted in updateRect/Region.
+ viewport->update(dirtyRegion); // Already adjusted in updateRect/Region.
}
dirtyBoundingRect = QRect();