2020-01-11 02:11:55 +03:00
|
|
|
#ifndef LINESCHART_H
|
|
|
|
#define LINESCHART_H
|
|
|
|
|
|
|
|
#include "lrchartitem.h"
|
|
|
|
|
|
|
|
namespace LimeReport {
|
2024-09-04 17:31:16 +03:00
|
|
|
class LinesChart: public AbstractBarChart {
|
2020-01-11 02:11:55 +03:00
|
|
|
public:
|
2024-09-04 17:31:16 +03:00
|
|
|
LinesChart(ChartItem* chartItem): AbstractBarChart(chartItem) { }
|
|
|
|
void paintChart(QPainter* painter, QRectF chartRect);
|
|
|
|
|
2022-01-18 12:56:05 +03:00
|
|
|
protected:
|
2024-09-04 17:31:16 +03:00
|
|
|
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);
|
2022-01-18 12:56:05 +03:00
|
|
|
|
2020-01-11 02:11:55 +03:00
|
|
|
private:
|
2024-09-04 17:31:16 +03:00
|
|
|
void paintSerialLines(QPainter* painter, QRectF barsRect);
|
2020-01-11 02:11:55 +03:00
|
|
|
};
|
2024-09-04 17:31:16 +03:00
|
|
|
} // namespace LimeReport
|
2020-01-11 02:11:55 +03:00
|
|
|
|
|
|
|
#endif // LINESCHART_H
|