path: root/tests/auto/
diff options
authorEskil Abrahamsen Blomfeldt <>2011-06-28 17:07:13 +0200
committerQt by Nokia <>2011-06-30 15:03:28 +0200
commit46c128bbf5561562458f6f7057e74eabacebe0ec (patch)
treee834a99ca458471cc1e8609e363df8fa31267d48 /tests/auto/
parent3debd70c08da8bf974c8d226427a76aba51b754a (diff)
Fix text color in some cases of QML and QStaticText
This reverts 518c2a58ed6fdfd7449cb4476aa8ea0d32ad16e3 which caused a regression. When writing systems are mixed and an underline is set on the font, QPainter will set a pen with the current color and a new width on itself before drawing the decoration. This would cause the recorder in QStaticText to mark the pen as dirty, saving the current pen color in all subsequent text items. The effect was e.g. that in QML the cached color would override the current one, making it impossible to change the color on the text without forcing a relayout somehow. The right fix is to only mark the pen as dirty when its color actually changes. Task-number: QTBUG-20159 Change-Id: Ia819b67cccc9eaedd23fde655eab58cd892646f8 Reviewed-by: Jiang Jiang Reviewed-on: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Eskil Abrahamsen Blomfeldt <>
Diffstat (limited to 'tests/auto/')
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/ b/tests/auto/
index df161f1fb2..cf7db60c6d 100644
--- a/tests/auto/
+++ b/tests/auto/
@@ -227,6 +227,7 @@ win32:SUBDIRS -= qtextpiecetable
qtextpiecetable \
qtipc \
qtoolbar \
+ qstatictext \
symbian:SUBDIRS -= \
qsystemtrayicon \