0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 17:18:10 +03:00
LimeReport/limereport/items/charts/lrpiechart.h

21 lines
548 B
C
Raw Permalink Normal View History

2020-01-11 02:11:55 +03:00
#ifndef PIECHART_H
#define PIECHART_H
#include "lrchartitem.h"
namespace LimeReport {
2020-01-11 02:11:55 +03:00
class PieChart: public AbstractChart {
2020-01-11 02:11:55 +03:00
public:
PieChart(ChartItem* chartItem): AbstractChart(chartItem) { }
QSizeF calcChartLegendSize(const QFont& font, qreal maxWidth = 0);
void paintChart(QPainter* painter, QRectF chartRect);
void paintChartLegend(QPainter* painter, QRectF legendRect);
2020-01-11 02:11:55 +03:00
protected:
void drawPercent(QPainter* painter, QRectF chartRect, qreal startAngle, qreal angle);
2020-01-11 02:11:55 +03:00
};
} // namespace LimeReport
#endif // PIECHART_H