##// END OF EJS Templates
Update pie series doc
Update pie series doc

File last commit:

r360:6630f89603b4
r415:36a5da8a2d29
Show More
charttheme_p.h
52 lines | 1.4 KiB | text/x-c | CLexer
#ifndef CHARTTHEME_H
#define CHARTTHEME_H
#include "qchartglobal.h"
#include "qchart.h"
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartItem;
class QSeries;
class LineChartItem;
class QLineSeries;
class BarPresenter;
class QBarSeries;
class StackedBarPresenter;
class QStackedBarSeries;
class QPercentBarSeries;
class PercentBarPresenter;
class QScatterSeries;
class ScatterPresenter;
class PiePresenter;
class QPieSeries;
class ChartTheme
{
protected:
explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeDefault);
public:
static ChartTheme* createTheme(QChart::ChartTheme theme);
QChart::ChartTheme id() const {return m_id;}
void decorate(QChart* chart);
void decorate(ChartItem* item, QSeries* series,int count);
void decorate(BarPresenter* item, QBarSeries* series,int count);
void decorate(StackedBarPresenter* item, QStackedBarSeries* series,int count);
void decorate(PercentBarPresenter* item, QPercentBarSeries* series,int count);
void decorate(LineChartItem* item, QLineSeries*, int count);
void decorate(ScatterPresenter* presenter, QScatterSeries* series, int count);
void decorate(PiePresenter* item, QPieSeries* series, int count);
void decorate(QChartAxis* axis,AxisItem* item);
protected:
QChart::ChartTheme m_id;
QColor m_gradientStartColor;
QColor m_gradientEndColor;
QList<QColor> m_seriesColor;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // CHARTTHEME_H