##// END OF EJS Templates
combined clicked and rightclicked events of legend to one event with parameter
combined clicked and rightclicked events of legend to one event with parameter

File last commit:

r548:426b0f7a9c96
r567:17f0257049a1
Show More
chartthemegrayscale_p.h
36 lines | 1.1 KiB | text/x-c | CLexer
/ src / themes / chartthemegrayscale_p.h
#include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeGrayscale: public ChartTheme
{
public:
ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale)
{
// Series colors
m_seriesColors << QRgb(0x869299);
m_seriesColors << QRgb(0xa5bdcc);
m_seriesColors << QRgb(0xe8fffc);
m_seriesColors << QRgb(0xccc2c2);
generateSeriesGradients();
// Background
QLinearGradient backgroundGradient;
backgroundGradient.setColorAt(0.0, QRgb(0xffffff));
backgroundGradient.setColorAt(1.0, QRgb(0xe0e3e5));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_backgroundGradient = backgroundGradient;
// Axes and other
m_masterFont = QFont();
m_axisLinePen = QPen(QRgb(0x0f0f0f));
m_axisLinePen.setWidth(2);
m_axisLabelBrush = QBrush(QRgb(0x3f3f3f));
m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons
m_backgroundShadesPen = Qt::NoPen;
m_gridLinePen = QPen(QRgb(0x0f0f0f));
m_gridLinePen.setWidth(2);
}
};
QTCOMMERCIALCHART_END_NAMESPACE