diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-11-26 03:39:44 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-11-26 03:39:44 (GMT) |
commit | fa8d0838dfc40ed269b30b9872cfdc2d2b16b64a (patch) | |
tree | d932ed2d3785775abf7c61e1f528ec842d6e16cb /src/declarative/graphicsitems | |
parent | 9ccaecf7825a782bfd29ff6c4118d933cc614726 (diff) | |
download | Qt-fa8d0838dfc40ed269b30b9872cfdc2d2b16b64a.zip Qt-fa8d0838dfc40ed269b30b9872cfdc2d2b16b64a.tar.gz Qt-fa8d0838dfc40ed269b30b9872cfdc2d2b16b64a.tar.bz2 |
Repaint when text color changes
Task-number: QTBUG-15623
Reviewed-by: Yann Bodson
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetext.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp index 82c444e..303b21c 100644 --- a/src/declarative/graphicsitems/qdeclarativetext.cpp +++ b/src/declarative/graphicsitems/qdeclarativetext.cpp @@ -436,12 +436,13 @@ void QDeclarativeTextPrivate::invalidateImageCache() { Q_Q(QDeclarativeText); - if (imageCacheDirty) - return; - - imageCacheDirty = true; - imageCache = QPixmap(); + if(cacheAllTextAsImage || style != QDeclarativeText::Normal){//If actually using the image cache + if (imageCacheDirty) + return; + imageCacheDirty = true; + imageCache = QPixmap(); + } if (q->isComponentComplete()) q->update(); } |