summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-17 14:00:11 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-17 15:19:43 (GMT)
commitde0b9a76f8903448caa8e8995084b4d153f5c888 (patch)
tree2ec9c7627fe4642da74a9bb2f098a3fb8ff564dd /src/gui/graphicsview
parent652b2ca3379715f757776654b406c1ac08573f22 (diff)
downloadQt-de0b9a76f8903448caa8e8995084b4d153f5c888.zip
Qt-de0b9a76f8903448caa8e8995084b4d153f5c888.tar.gz
Qt-de0b9a76f8903448caa8e8995084b4d153f5c888.tar.bz2
Remove two work-arounds in QGraphicsView::paintEvent.
The accelerate scrolling work-around is fixed by: 8ebe882b077fffedc3ff80fb80d2e181d5e56ab8 The other case was trying to avoid doing expensive QRegion calculations when everything must be repainted anyways. However, it was not entirely correct to assume all paintEvents are triggered by GV itself. Anyways, we don't need it anymore :-) Reviewed-by: Andreas
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index 715bf37..d354b49 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -3233,10 +3233,6 @@ void QGraphicsView::paintEvent(QPaintEvent *event)
// Determine the exposed region
d->exposedRegion = event->region();
- if (!d->accelerateScrolling)
- d->exposedRegion = viewport()->rect();
- else if (d->viewportUpdateMode == BoundingRectViewportUpdate)
- d->exposedRegion = event->rect();
QRectF exposedSceneRect = mapToScene(d->exposedRegion.boundingRect()).boundingRect();
// Set up the painter