diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-29 12:35:34 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-29 12:35:34 (GMT) |
commit | 82ad1edea9fd6d6955ab9e3f661c625f7ba5ed78 (patch) | |
tree | 58934af99acbd49c4f9bedf66fc4a94d784048ec /src/gui/graphicsview/qgraphicsitem.cpp | |
parent | 63be458a64d6f88333cd921e587b2c651acb122f (diff) | |
parent | 640ae542541b66a5da85ce76309f9595ed2c8bf3 (diff) | |
download | Qt-82ad1edea9fd6d6955ab9e3f661c625f7ba5ed78.zip Qt-82ad1edea9fd6d6955ab9e3f661c625f7ba5ed78.tar.gz Qt-82ad1edea9fd6d6955ab9e3f661c625f7ba5ed78.tar.bz2 |
Merge branch '4.5' into 4.6
Conflicts:
doc/src/platform-notes.qdoc
src/3rdparty/webkit/WebKit/qt/Api/qwebpluginfactory.cpp
src/gui/graphicsview/qgraphicsitem.cpp
tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index c3934c7..d7a7bd2 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -5140,14 +5140,8 @@ void QGraphicsItem::update(const QRectF &rect) } while ((item = item->d_ptr->parent)); if (CacheMode(d_ptr->cacheMode) != NoCache) { - QGraphicsItemCache *cache = d_ptr->extraItemCache(); - if (d_ptr->discardUpdateRequest(/* ignoreVisibleBit = */ false, - /* ignoreClipping = */ false, - /* ignoreDirtyBit = */ true)) { - return; - } - // Invalidate cache. + QGraphicsItemCache *cache = d_ptr->extraItemCache(); if (!cache->allExposed) { if (rect.isNull()) { cache->allExposed = true; @@ -5161,6 +5155,9 @@ void QGraphicsItem::update(const QRectF &rect) return; } + if (d_ptr->discardUpdateRequest()) + return; + if (d_ptr->scene) d_ptr->scene->d_func()->markDirty(this, rect); } |