mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
ab324ed769
With removal of QtCharts' axes, the grid was lost. Readd it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
22 lines
477 B
C++
22 lines
477 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
// The background grid of a chart
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
#include <QVector>
|
|
#include <QGraphicsLineItem>
|
|
|
|
class StatsAxis;
|
|
namespace QtCharts {
|
|
class QChart;
|
|
};
|
|
|
|
class StatsGrid {
|
|
public:
|
|
StatsGrid(QtCharts::QChart *chart, const StatsAxis &xAxis, const StatsAxis &yAxis);
|
|
void updatePositions();
|
|
private:
|
|
QtCharts::QChart *chart;
|
|
const StatsAxis &xAxis, &yAxis;
|
|
std::vector<std::unique_ptr<QGraphicsLineItem>> lines;
|
|
};
|