##// END OF EJS Templates
framework for legend
framework for legend

File last commit:

r507:cd18b203dd88
r524:280ce33a2f47
Show More
chartthemedefault_p.h
24 lines | 709 B | text/x-c | CLexer
/ src / themes / chartthemedefault_p.h
#include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeDefault: public ChartTheme
{
public:
ChartThemeDefault():ChartTheme(QChart::ChartThemeDefault)
{
// TODO: replace this dummy theme with an actual theme
m_seriesColors << QRgb(0xff707070);
m_seriesColors << QRgb(0xffA0A0A0);
generateSeriesGradients();
QLinearGradient backgroundGradient;
backgroundGradient.setColorAt(0.0, QRgb(0xffffffff));
backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_backgroundGradient = backgroundGradient;
}
};
QTCOMMERCIALCHART_END_NAMESPACE