mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move most of the QtQuick code to its own directory, so that it can be reused in the future for the chart. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
23 lines
522 B
C++
23 lines
522 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
// The background grid of a chart
|
|
|
|
#include "qt-quick/chartitem_ptr.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
class StatsAxis;
|
|
class StatsTheme;
|
|
class StatsView;
|
|
class ChartLineItem;
|
|
|
|
class StatsGrid {
|
|
public:
|
|
StatsGrid(StatsView &view, const StatsAxis &xAxis, const StatsAxis &yAxis);
|
|
void updatePositions();
|
|
private:
|
|
StatsView &view;
|
|
const StatsTheme &theme; // Initialized once in constructor.
|
|
const StatsAxis &xAxis, &yAxis;
|
|
std::vector<ChartItemPtr<ChartLineItem>> lines;
|
|
};
|