diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-09-02 06:11:18 (GMT) |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 10:06:50 (GMT) |
commit | e0328b8e8d50868fb35398f15a1882aa42343deb (patch) | |
tree | be1b7849e6c1f73768d14ea2613eafab271bb4bf | |
parent | 967c159eff9471968c512e740483628615df3507 (diff) | |
download | Qt-e0328b8e8d50868fb35398f15a1882aa42343deb.zip Qt-e0328b8e8d50868fb35398f15a1882aa42343deb.tar.gz Qt-e0328b8e8d50868fb35398f15a1882aa42343deb.tar.bz2 |
Minor performance improvement to QGraphicsItem::update.
Reported by other teams in Nokia. Avoid calling discardUpdateRequest() twice,
first in update() and then in markDirty(). No-brainer.
Task-number: QTBUG-10817
Reviewed-by: Trustme
(cherry picked from commit 72a1709cbe216220722750c743641bf5ba8a8da9)
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index bffa6c8..6aaf298 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -5445,9 +5445,6 @@ void QGraphicsItem::update(const QRectF &rect) return; } - if (d_ptr->discardUpdateRequest()) - return; - if (d_ptr->scene) d_ptr->scene->d_func()->markDirty(this, rect); } |