tolinechart.cpp File Reference

#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 Documentation

#define FONT_ALIGN   AlignLeft|AlignTop|ExpandTabs

Definition at line 210 of file tolinechart.cpp.


Function Documentation

QColor toChartColor ( int  index  ) 

Get a color for a chart item.

Parameters:
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 }


Variable Documentation

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().


Generated on Sat Dec 15 00:01:29 2007 for BulmaGes by  doxygen 1.5.1