0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-03 03:57:31 +03:00

Add horizontal legend

This commit is contained in:
Emil Sawicki
2022-02-07 23:16:07 +01:00
parent 667ff4adb4
commit b14f0be7bc
4 changed files with 325 additions and 90 deletions

View File

@@ -8,7 +8,7 @@ namespace LimeReport{
class PieChart : public AbstractChart{
public:
PieChart(ChartItem* chartItem):AbstractChart(chartItem){}
QSizeF calcChartLegendSize(const QFont &font);
QSizeF calcChartLegendSize(const QFont &font, qreal maxWidth = 0);
void paintChart(QPainter *painter, QRectF chartRect);
void paintChartLegend(QPainter *painter, QRectF legendRect);
protected: