summaryrefslogtreecommitdiffstats
path: root/stats/statsseries.h
diff options
context:
space:
mode:
Diffstat (limited to 'stats/statsseries.h')
-rw-r--r--stats/statsseries.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/stats/statsseries.h b/stats/statsseries.h
index 2494569e6..b24be7a79 100644
--- a/stats/statsseries.h
+++ b/stats/statsseries.h
@@ -8,16 +8,18 @@
class QGraphicsScene;
class StatsAxis;
+class StatsView;
class StatsSeries {
public:
- StatsSeries(QGraphicsScene *scene, StatsAxis *xAxis, StatsAxis *yAxis);
+ StatsSeries(QGraphicsScene *scene, 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);
};