From 26832e993d6604ab8d8b179778e3829b3705b7e2 2012-03-08 13:10:51 From: sauimone Date: 2012-03-08 13:10:51 Subject: [PATCH] Using new theme in barcharts --- diff --git a/src/charttheme.cpp b/src/charttheme.cpp index 1765b77..5a74ba6 100644 --- a/src/charttheme.cpp +++ b/src/charttheme.cpp @@ -156,24 +156,30 @@ void ChartTheme::decorate(LineChartItem* item, QLineSeries* series,int count) void ChartTheme::decorate(BarPresenter* item, QBarSeries* series,int count) { QList sets = series->barSets(); - for (int i=0; ibarsetCount(); i++) { - sets.at(i)->setBrush(QBrush(m_seriesColors.at(i%m_seriesColors.count()))); + for (int i=0; isetBrush(QBrush(c)); } } void ChartTheme::decorate(StackedBarPresenter* item, QStackedBarSeries* series,int count) { QList sets = series->barSets(); - for (int i=0; ibarsetCount(); i++) { - sets.at(i)->setBrush(QBrush(m_seriesColors.at(i%m_seriesColors.count()))); + for (int i=0; isetBrush(QBrush(c)); } } void ChartTheme::decorate(PercentBarPresenter* item, QPercentBarSeries* series,int count) { QList sets = series->barSets(); - for (int i=0; ibarsetCount(); i++) { - sets.at(i)->setBrush(QBrush(m_seriesColors.at(i%m_seriesColors.count()))); + for (int i=0; isetBrush(QBrush(c)); } }