chartthemescientific_p.h
38 lines
| 1.2 KiB
| text/x-c
|
CLexer
Michal Klocek
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeScientific: public ChartTheme | ||||
{ | ||||
public: | ||||
Michal Klocek
|
r153 | ChartThemeScientific():ChartTheme(QChart::ChartThemeScientific) | ||
Michal Klocek
|
r143 | { | ||
Jani Honkonen
|
r494 | m_seriesColors << QRgb(0xFF000000); | ||
m_seriesColors << QRgb(0xFFFFAD00); | ||||
m_seriesColors << QRgb(0xFF596A75); | ||||
m_seriesColors << QRgb(0xFF474747); | ||||
Michal Klocek
|
r143 | |||
Jani Honkonen
|
r494 | QLinearGradient g1; | ||
g1.setColorAt(0.0, m_seriesColors.at(0)); | ||||
g1.setColorAt(1.0, m_seriesColors.at(1)); | ||||
m_seriesGradients << g1; | ||||
QLinearGradient g2; | ||||
g2.setColorAt(0.0, m_seriesColors.at(1)); | ||||
g2.setColorAt(1.0, m_seriesColors.at(2)); | ||||
m_seriesGradients << g2; | ||||
QLinearGradient g3; | ||||
g3.setColorAt(0.0, m_seriesColors.at(2)); | ||||
g3.setColorAt(1.0, m_seriesColors.at(3)); | ||||
m_seriesGradients << g3; | ||||
QLinearGradient backgroundGradient; | ||||
backgroundGradient.setColorAt(0.0, QRgb(0xffafafaf)); | ||||
backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf)); | ||||
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||||
m_backgroundGradient = backgroundGradient; | ||||
Michal Klocek
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||