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

24 lines
696 B
C
Raw Normal View History

2020-01-11 02:11:55 +03:00
#ifndef LINESCHART_H
#define LINESCHART_H
#include "lrchartitem.h"
namespace LimeReport {
class LinesChart: public AbstractBarChart {
2020-01-11 02:11:55 +03:00
public:
LinesChart(ChartItem* chartItem): AbstractBarChart(chartItem) { }
void paintChart(QPainter* painter, QRectF chartRect);
protected:
void drawDesignMode(QPainter* painter, qreal hStep, qreal vStep, qreal topShift,
QRectF barsRect);
qreal calculatePos(const AxisData& data, qreal value, qreal rectSize) const;
void paintSeries(QPainter* painter, SeriesItem* series, QRectF barsRect);
2020-01-11 02:11:55 +03:00
private:
void paintSerialLines(QPainter* painter, QRectF barsRect);
2020-01-11 02:11:55 +03:00
};
} // namespace LimeReport
2020-01-11 02:11:55 +03:00
#endif // LINESCHART_H