Reference documentation
|
The PieChartLegend class displays the legend in a Thistle::PieChart. More...
Protected Member Functions | |
virtual void | paint (QPainter &painter) const |
Paints the legend of the chart on the given QPainter. More... | |
virtual void | paintSerie (QPainter &painter, int serie, QPoint pos, int maxHeight) const |
Paints the serie on the given QPainter. More... | |
Additional Inherited Members | |
Public Member Functions inherited from ChartLegend | |
ChartLegend (AbstractChart *chart) | |
Constructs a ChartLegend object for the given chart. | |
The PieChartLegend class displays the legend in a Thistle::PieChart.
The PieChartLegend class displays the legend in a Thistle::PieChart.
The Thistle::PieChartLegend
displays the legend in a Thistle::RadialChart
view.
|
protectedvirtual |
Paints the legend of the chart on the given QPainter.
The legend of a serie is the text in the Horizontal QHeaderView
and the style defined for each column.
Reimplemented from ChartLegend.
|
protectedvirtual |
Paints the serie on the given QPainter.
The serie will be painted at pos. maxHeight indicates the maximum height allowed to paint the legend. The width should be calculates by the chart itself.
This method sucks and has to be modified.
Implements ChartLegend.