##// END OF EJS Templates
Adds to themes support to lineseries
Michal Klocek -
r152:a883350fc5d3
parent child
Show More
@@ -106,7 +106,14 void ChartTheme::decorate(ChartItem* item, QChartSeries* series,int count)
106 106
107 107 void ChartTheme::decorate(LineChartItem* item, QLineChartSeries* series,int count)
108 108 {
109 item->setPen(series->pen());
109 QPen pen;
110 if(pen != series->pen()){
111 item->setPen(series->pen());
112 return;
113 }
114 pen.setColor(m_seriesColor.at(count%m_seriesColor.size()));
115 pen.setWidthF(2);
116 item->setPen(pen);
110 117 }
111 118
112 119 void ChartTheme::decorate(BarGroup* item, BarChartSeries* series,int count)
General Comments 0
You need to be logged in to leave comments. Login now