#include <qpainter.h>#include <qworkspace.h>#include <qlineedit.h>#include <qcheckbox.h>#include <qspinbox.h>#include <qvalidator.h>#include <qprinter.h>#include <qpaintdevicemetrics.h>#include <qpopupmenu.h>#include "tolinechart.h"#include "tolinechartsetupui.h"#include "print.xpm"Go to the source code of this file.
Defines | |
| #define | FONT_ALIGN AlignLeft|AlignTop|ExpandTabs |
Functions | |
| QColor | toChartColor (int index) |
Variables | |
| static QColor | ChartColors [] |
| #define FONT_ALIGN AlignLeft|AlignTop|ExpandTabs |
Definition at line 210 of file tolinechart.cpp.
| QColor toChartColor | ( | int | index | ) |
Get a color for a chart item.
| index | Indicating which chart item to get color for. |
Definition at line 79 of file tolinechart.cpp.
References ChartColors.
Referenced by toPieChart::paintChart(), toLineChart::paintChart(), and toLineChart::paintLegend().
00080 { 00081 return ChartColors[index%(sizeof(ChartColors)/sizeof(QColor))]; 00082 }
QColor ChartColors[] [static] |
Initial value:
{
Qt::red,
Qt::green,
Qt::blue,
Qt::cyan,
Qt::magenta,
Qt::yellow,
Qt::darkRed,
Qt::darkGreen,
Qt::darkBlue,
Qt::darkCyan,
Qt::darkMagenta,
Qt::darkYellow
}
Definition at line 64 of file tolinechart.cpp.
Referenced by toChartColor().
1.5.1