summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-05-29 14:17:12 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-05-30 07:46:50 +0300
commit74f3dbde7a75433409005225082962ba658e5442 (patch)
tree6e8b3ef0b9bd990ed2e6b1cfb4f554a06f6807e8 /tests
parentec1756baf2334364097278366447d3223f618088 (diff)
Added HTML support for various text items
- HTML tags can now be used in chart titles, legends, and labels - '\n' does no longer cause line break in multi-line text items. HTML tag <br/> can be used for line break now. - Setting pen for axis titles and labels is deprecated - When setting brush for titles and labels, only the color is relevant - Logic for identifying label format specifiers was improved, so adding additional information to labels via label format string is now more viable. Task-number: QTRD-1912 Change-Id: I8fa56df56fd656e2a3e427eff4abf3481435eec7 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qchart/tst_qchart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qchart/tst_qchart.cpp b/tests/auto/qchart/tst_qchart.cpp
index 4f78d4e4..71f7d0d9 100644
--- a/tests/auto/qchart/tst_qchart.cpp
+++ b/tests/auto/qchart/tst_qchart.cpp
@@ -754,7 +754,7 @@ void tst_QChart::titleBrush()
{
QFETCH(QBrush, titleBrush);
m_chart->setTitleBrush(titleBrush);
- QCOMPARE(m_chart->titleBrush(), titleBrush);
+ QCOMPARE(m_chart->titleBrush().color(), titleBrush.color());
}
void tst_QChart::titleFont_data()