aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-02-03 13:49:00 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-06 10:22:46 +0100
commit63ac4c6a4706637d9499210086f387b3849b6ad0 (patch)
tree82b3a2a3ceb5233cf0adea35ce2dcdf8f1ba924b /src
parent4cd28a7f8c6abb7a33d19b0c87152d85370373d1 (diff)
Fix updating text color in Text element
The setColor() function in QQuickText calls markDirty() which did not specify that the whole paint node should be updated, so color updates would have no effect until something else changed. Change-Id: I93741b6c697f2dd6ad5a315250502a7a6e3ce1d7 Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquicktext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp
index 704dfc9593..0e1c5a8c39 100644
--- a/src/quick/items/qquicktext.cpp
+++ b/src/quick/items/qquicktext.cpp
@@ -1028,8 +1028,10 @@ QPixmap QQuickTextPrivate::textDocumentImage(bool drawStyle)
void QQuickTextPrivate::markDirty()
{
Q_Q(QQuickText);
- if (!invalidateImageCache() && q->isComponentComplete())
+ if (!invalidateImageCache() && q->isComponentComplete()) {
+ updateType = UpdatePaintNode;
q->update();
+ }
}
/*!