diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-09-02 06:11:18 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-09-02 06:11:18 (GMT) |
commit | 72a1709cbe216220722750c743641bf5ba8a8da9 (patch) | |
tree | 4eed8437c0873d55d845c74e34b30b78ad780b62 /src | |
parent | 22db0e0eeb9ac703f3d249ca7221a97628a3289f (diff) | |
download | Qt-72a1709cbe216220722750c743641bf5ba8a8da9.zip Qt-72a1709cbe216220722750c743641bf5ba8a8da9.tar.gz Qt-72a1709cbe216220722750c743641bf5ba8a8da9.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
Diffstat (limited to 'src')
-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 7a622f1..fc122d2 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -5666,9 +5666,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); } |