diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-10 23:28:50 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-10 23:28:50 (GMT) |
commit | fd11ad94463300e16a8a085ae313816bab3049e7 (patch) | |
tree | 9062273fb921d5ce3d5f06a319d4297b93384dac /src/gui | |
parent | 7b42a443384c884ce12a9499a95455a188dcb02d (diff) | |
download | Qt-fd11ad94463300e16a8a085ae313816bab3049e7.zip Qt-fd11ad94463300e16a8a085ae313816bab3049e7.tar.gz Qt-fd11ad94463300e16a8a085ae313816bab3049e7.tar.bz2 |
Revert 4bf7f90a27377f439e86d6175e5e3cdebd131be0 and implement differently.
Setting painter clip can reduce performance in some cases, so items
must access system clip.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 87585a2..90c0ff2 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -3275,13 +3275,10 @@ void QGraphicsView::paintEvent(QPaintEvent *event) // Determine the exposed region d->exposedRegion = event->region(); - if (d->exposedRegion.isEmpty()) - d->exposedRegion = viewport()->rect(); QRectF exposedSceneRect = mapToScene(d->exposedRegion.boundingRect()).boundingRect(); // Set up the painter QPainter painter(viewport()); - painter.setClipRect(event->rect(), Qt::IntersectClip); #ifndef QT_NO_RUBBERBAND if (d->rubberBanding && !d->rubberBandRect.isEmpty()) painter.save(); |