mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-26 21:38:08 +03:00
20 lines
523 B
C++
20 lines
523 B
C++
#ifndef PIECHART_H
|
|
#define PIECHART_H
|
|
|
|
#include "lrchartitem.h"
|
|
|
|
namespace LimeReport{
|
|
|
|
class PieChart : public AbstractChart{
|
|
public:
|
|
PieChart(ChartItem* chartItem):AbstractChart(chartItem){}
|
|
QSizeF calcChartLegendSize(const QFont &font);
|
|
void paintChart(QPainter *painter, QRectF chartRect);
|
|
void paintChartLegend(QPainter *painter, QRectF legendRect);
|
|
protected:
|
|
void drawPercent(QPainter *painter, QRectF chartRect, qreal startAngle, qreal angle);
|
|
};
|
|
|
|
} // namespace LimeReport
|
|
#endif // PIECHART_H
|