##// END OF EJS Templates
removed old code from barcharts
removed old code from barcharts

File last commit:

r153:04be7b528347
r162:646d6bcb9a35
Show More
charttheme_p.h
45 lines | 1.2 KiB | text/x-c | CLexer
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #ifndef CHARTTHEME_H
#define CHARTTHEME_H
#include "qchartglobal.h"
Michal Klocek
Refactor themes...
r143 #include "qchart.h"
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor themes...
r143 class ChartItem;
class QChartSeries;
Michal Klocek
Fix previous broken commit
r145 class LineChartItem;
class QLineChartSeries;
Michal Klocek
Refactor themes...
r143 class BarGroup;
class BarChartSeries;
class StackedBarGroup;
class StackedBarChartSeries;
class PercentBarChartSeries;
class PercentBarGroup;
class ChartTheme
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 {
Michal Klocek
Refactor themes...
r143 protected:
Michal Klocek
Adds missing ids to theme classes
r153 explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeDefault);
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 public:
Michal Klocek
Adds missing ids to theme classes
r153 static ChartTheme* createTheme(QChart::ChartTheme theme);
QChart::ChartTheme id() const {return m_id;}
Michal Klocek
Refactor themes...
r143 void decorate(QChart* chart);
void decorate(ChartItem* item, QChartSeries* series,int count);
Michal Klocek
Fix previous broken commit
r145 void decorate(LineChartItem* item, QLineChartSeries*, int count);
Michal Klocek
Refactor themes...
r143 void decorate(BarGroup* item, BarChartSeries* series,int count);
void decorate(StackedBarGroup* item, StackedBarChartSeries* series,int count);
void decorate(PercentBarGroup* item, PercentBarChartSeries* series,int count);
protected:
Michal Klocek
Adds missing ids to theme classes
r153 QChart::ChartTheme m_id;
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 QColor m_gradientStartColor;
QColor m_gradientEndColor;
Michal Klocek
Refactor themes...
r143 QList<QColor> m_seriesColor;
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // CHARTTHEME_H