diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-18 12:35:22 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | 2480d3b7e0280e34377c2cd1840c0a7770bf18ef (patch) | |
tree | 36daa5a199c9024367ecb0997c51d75a1682ca19 /stats/statsseries.h | |
parent | b068b2b0e70c131ee146cc7962979684a0b3a527 (diff) | |
download | subsurface-2480d3b7e0280e34377c2cd1840c0a7770bf18ef.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsseries.h')
-rw-r--r-- | stats/statsseries.h | 4 |
1 files changed, 1 insertions, 3 deletions
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 <QPointF> -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); |