From a883350fc5d3575f3e44d928f166ecbbe9c4b044 2012-02-09 13:05:22 From: Michal Klocek Date: 2012-02-09 13:05:22 Subject: [PATCH] Adds to themes support to lineseries --- diff --git a/src/charttheme.cpp b/src/charttheme.cpp index e486f44..fcb2507 100644 --- a/src/charttheme.cpp +++ b/src/charttheme.cpp @@ -106,7 +106,14 @@ void ChartTheme::decorate(ChartItem* item, QChartSeries* series,int count) void ChartTheme::decorate(LineChartItem* item, QLineChartSeries* series,int count) { - item->setPen(series->pen()); + QPen pen; + if(pen != series->pen()){ + item->setPen(series->pen()); + return; + } + pen.setColor(m_seriesColor.at(count%m_seriesColor.size())); + pen.setWidthF(2); + item->setPen(pen); } void ChartTheme::decorate(BarGroup* item, BarChartSeries* series,int count)