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)); } }