diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-02 07:23:04 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:30:22 (GMT) |
commit | 80321b092fa35eb398f3aaf6a549f20fc4a94624 (patch) | |
tree | c0090e339000a8d89fd34a64cbe09a77d57bd48c /src/gui/graphicsview/qgraphicsview.cpp | |
parent | c714b0e5527377bf3189b15a3bea0063f8aecebf (diff) | |
download | Qt-80321b092fa35eb398f3aaf6a549f20fc4a94624.zip Qt-80321b092fa35eb398f3aaf6a549f20fc4a94624.tar.gz Qt-80321b092fa35eb398f3aaf6a549f20fc4a94624.tar.bz2 |
Only repaint in QGraphicsViewPrivate::processPendingUpdates()
Convert some repaint() calls back to updates(). This ensures that any
updates triggered before this call are processed normally, while still
keeping the synchronous repaint() call intact.
Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index 7f6fd5e..2515069 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -846,13 +846,13 @@ void QGraphicsViewPrivate::updateRegion(const QRegion &r) switch (viewportUpdateMode) { case QGraphicsView::FullViewportUpdate: fullUpdatePending = true; - q->viewport()->repaint(); + q->viewport()->update(); break; case QGraphicsView::BoundingRectViewportUpdate: dirtyBoundingRect |= r.boundingRect(); if (dirtyBoundingRect.contains(q->viewport()->rect())) { fullUpdatePending = true; - q->viewport()->repaint(); + q->viewport()->update(); } break; case QGraphicsView::SmartViewportUpdate: // ### DEPRECATE @@ -882,13 +882,13 @@ void QGraphicsViewPrivate::updateRect(const QRect &r) switch (viewportUpdateMode) { case QGraphicsView::FullViewportUpdate: fullUpdatePending = true; - q->viewport()->repaint(); + q->viewport()->update(); break; case QGraphicsView::BoundingRectViewportUpdate: dirtyBoundingRect |= r; if (dirtyBoundingRect.contains(q->viewport()->rect())) { fullUpdatePending = true; - q->viewport()->repaint(); + q->viewport()->update(); } break; case QGraphicsView::SmartViewportUpdate: // ### DEPRECATE |