mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
0fca7169d3
except those placed in 3rdparty directories.
24 lines
696 B
C++
24 lines
696 B
C++
#ifndef LINESCHART_H
|
|
#define LINESCHART_H
|
|
|
|
#include "lrchartitem.h"
|
|
|
|
namespace LimeReport {
|
|
class LinesChart: public AbstractBarChart {
|
|
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);
|
|
|
|
private:
|
|
void paintSerialLines(QPainter* painter, QRectF barsRect);
|
|
};
|
|
} // namespace LimeReport
|
|
|
|
#endif // LINESCHART_H
|