From 2480d3b7e0280e34377c2cd1840c0a7770bf18ef Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 18 Jan 2021 12:35:22 +0100 Subject: statistics: remove QGraphicsView from StatSeries All series are converted to QSG. Thus, the pointer to the QGraphicsView can be removed from the common base class. Signed-off-by: Berthold Stoeger --- stats/statsseries.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stats/statsseries.h') diff --git a/stats/statsseries.h b/stats/statsseries.h index b24be7a79..360396601 100644 --- a/stats/statsseries.h +++ b/stats/statsseries.h @@ -6,19 +6,17 @@ #include -class QGraphicsScene; class StatsAxis; class StatsView; class StatsSeries { public: - StatsSeries(QGraphicsScene *scene, StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis); + StatsSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis); virtual ~StatsSeries(); virtual void updatePositions() = 0; // Called if chart geometry changes. virtual bool hover(QPointF pos) = 0; // Called on mouse movement. Return true if an item of this series is highlighted. virtual void unhighlight() = 0; // Unhighlight any highlighted item. protected: - QGraphicsScene *scene; StatsView &view; StatsAxis *xAxis, *yAxis; // May be zero for charts without axes (pie charts). QPointF toScreen(QPointF p); -- cgit v1.2.3-70-g09d2