##// END OF EJS Templates
Axis refactoring to support better barcharts
Axis refactoring to support better barcharts

File last commit:

r494:43cfc69dc4bb
r502:c37a1568cc38
Show More
chartthemedefault_p.h
26 lines | 772 B | text/x-c | CLexer
/ src / themes / chartthemedefault_p.h
Jani Honkonen
Adding list of series gradients to theme.
r494 #include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeDefault: public ChartTheme
{
public:
ChartThemeDefault():ChartTheme(QChart::ChartThemeDefault)
{
m_seriesColors << QRgb(0xff000000);
m_seriesColors << QRgb(0xff707070);
QLinearGradient g1;
g1.setColorAt(0.0, m_seriesColors.at(0));
g1.setColorAt(1.0, m_seriesColors.at(1));
m_seriesGradients << g1;
QLinearGradient backgroundGradient;
backgroundGradient.setColorAt(0.0, QRgb(0xffffffff));
backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_backgroundGradient = backgroundGradient;
}
};
QTCOMMERCIALCHART_END_NAMESPACE