diff --git a/src/qchart.cpp b/src/qchart.cpp index 670dd2d..2913436 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -230,7 +230,9 @@ QBrush QChart::titleBrush() const } /*! - Sets the \a theme used by the chart for rendering the graphical representation of the data + Sets the \a theme used by the chart for rendering the graphical representation of the data. + + Note: changing the theme will overwrite all customizations (pen, brush, font, ect.) done to the series. \sa theme() */ void QChart::setTheme(QChart::ChartTheme theme) diff --git a/tests/auto/qlineseries/tst_qlineseries.cpp b/tests/auto/qlineseries/tst_qlineseries.cpp index 2d5c0d1..ef08e82 100644 --- a/tests/auto/qlineseries/tst_qlineseries.cpp +++ b/tests/auto/qlineseries/tst_qlineseries.cpp @@ -284,7 +284,7 @@ void tst_QLineSeries::pen() m_chart->setTheme(QChart::ChartThemeDark); - if(pen!=QPen()) QCOMPARE(series.pen(), pen); + QVERIFY(series.pen() != pen); } void tst_QLineSeries::pointsVisible_data()