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