class toLegendChart

A widget that displays a legend to other charts. More...

Definition#include <tolegendchart.h>
InheritsQWidget (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A widget that displays a legend to other charts.

 toLegendChart (int columns,QWidget *parent=NULL,const char *name=NULL,WFlags f=0)

toLegendChart

Create a new legend.

Parameters:
columnsColumns.
parentParent widget.
nameName of widget.
fWidget flags.

void  setTitle (const QString &title=QString::null)

setTitle

Set title of the chart. Set to empty string to not display title.

Parameters:
titleTitle of chart.

const QStringtitle (void)

title

Get title of chart.

Returns: Title of chart.

void  setLabels (std::list<QString> &labels)

setLabels

Set list of chart labels.

Parameters:
labelsList of labels, if label is empty it will not appear in legend.

void  addLabel (const QString &label)

addLabel

Add a value to the chart.

Parameters:
valueNew value to add.
labelLabel of this new value.

std::list<QString> & labels (void)

labels

Get labels of chart.

Returns: List of labels.

QSize  sizeHint ()

sizeHint

[virtual]

Reimplemented for internal reasons.

Reimplemented from QWidget.

void  paintEvent (QPaintEvent *e)

paintEvent

[protected virtual]

Reimplemented for internal reasons.

Reimplemented from QWidget.