##// END OF EJS Templates
Fixed bug in setting chart theme...
Tero Ahola -
r312:0677c9dd6d92
parent child
Show More
@@ -13,6 +13,7 int main(int argc, char *argv[])
13 //! [1]
13 //! [1]
14 // Create chart view
14 // Create chart view
15 QChartView *chartView = new QChartView();
15 QChartView *chartView = new QChartView();
16 chartView->setChartTheme(QChart::ChartThemeIcy);
16
17
17 // Add scatter series with simple test data
18 // Add scatter series with simple test data
18 QScatterSeries *scatter = new QScatterSeries();
19 QScatterSeries *scatter = new QScatterSeries();
@@ -229,8 +229,8 void ChartPresenter::setChartTheme(QChart::ChartTheme theme)
229 int index=0;
229 int index=0;
230 while (i.hasNext()) {
230 while (i.hasNext()) {
231 i.next();
231 i.next();
232 index++;
233 m_chartTheme->decorate(i.value(),i.key(),index);
232 m_chartTheme->decorate(i.value(),i.key(),index);
233 index++;
234 }
234 }
235
235
236 QMapIterator<QChartAxis*,AxisItem*> j(m_axisItems);
236 QMapIterator<QChartAxis*,AxisItem*> j(m_axisItems);
General Comments 0
You need to be logged in to leave comments. Login now