charttheme_p.h
43 lines
| 1.0 KiB
| text/x-c
|
CLexer
/ src / charttheme_p.h
|
r103 | #ifndef CHARTTHEME_H | ||
#define CHARTTHEME_H | ||||
#include "qchartglobal.h" | ||||
|
r143 | #include "qchart.h" | ||
|
r103 | #include <QColor> | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
|
r143 | class ChartItem; | ||
class QChartSeries; | ||||
class XYLineChartItem; | ||||
class QXYChartSeries; | ||||
class BarGroup; | ||||
class BarChartSeries; | ||||
class StackedBarGroup; | ||||
class StackedBarChartSeries; | ||||
class PercentBarChartSeries; | ||||
class PercentBarGroup; | ||||
class ChartTheme | ||||
|
r103 | { | ||
|
r143 | protected: | ||
explicit ChartTheme(); | ||||
|
r103 | public: | ||
|
r143 | static ChartTheme* createTheme(QChart::ChartThemeId theme); | ||
void decorate(QChart* chart); | ||||
void decorate(ChartItem* item, QChartSeries* series,int count); | ||||
void decorate(XYLineChartItem* item, QXYChartSeries*, int count); | ||||
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: | ||||
|
r103 | QColor m_gradientStartColor; | ||
QColor m_gradientEndColor; | ||||
|
r143 | QList<QColor> m_seriesColor; | ||
|
r103 | |||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // CHARTTHEME_H | ||||