aboutsummaryrefslogtreecommitdiffstats
path: root/stats/statsgrid.h
blob: 47b48b3ac3a8d71878ff579af3d483f8bfe04d6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: GPL-2.0
// The background grid of a chart

#include <memory>
#include <vector>
#include <QVector>
#include <QGraphicsLineItem>

class StatsAxis;
class QGraphicsScene;

class StatsGrid  {
public:
	StatsGrid(QGraphicsScene *scene, const StatsAxis &xAxis, const StatsAxis &yAxis);
	void updatePositions();
private:
	QGraphicsScene *scene;
	const StatsAxis &xAxis, &yAxis;
	std::vector<std::unique_ptr<QGraphicsLineItem>> lines;
};