Reference documentation
Public Member Functions | List of all members
AbstractChartDelegate Class Referenceabstract

The AbstractChartDelegate class provides an abstract base for every chart delegate. More...

Inheritance diagram for AbstractChartDelegate:
BarDelegate DotDelegate

Public Member Functions

virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 Paints the data of the index relative to the shape set in the SerieFormat corresponding to the index column.
 
virtual void paintDisabled (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 Paints the delegate's disabled render. More...
 
virtual void paintEnabled (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 Paints the delegate's enabled render. More...
 

Detailed Description

The AbstractChartDelegate class provides an abstract base for every chart delegate.

The AbstractChartDelegate class provides display and editing facilities for data items in a chart view.

See Also
DotDelegate, BarDelegate

Member Function Documentation

void paintDisabled ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
pure virtual

Paints the delegate's disabled render.

An item is considered as disabled when the selectionModel is not empty and doesn't contain the index.

Implemented in BarDelegate, and DotDelegate.

void paintEnabled ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
pure virtual

Paints the delegate's enabled render.

An item is considered as enabled when the selectionModel is empty or contains an index in the column of index.

Implemented in BarDelegate, and DotDelegate.