summaryrefslogtreecommitdiffstats
path: root/stats/legend.h
diff options
context:
space:
mode:
Diffstat (limited to 'stats/legend.h')
-rw-r--r--stats/legend.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stats/legend.h b/stats/legend.h
index 2baf6f67b..c643a41f3 100644
--- a/stats/legend.h
+++ b/stats/legend.h
@@ -8,11 +8,12 @@
#include <memory>
#include <vector>
+class QGraphicsScene;
class QGraphicsSceneMouseEvent;
class Legend : public RoundRectItem {
public:
- Legend(QGraphicsWidget *chart, const std::vector<QString> &names);
+ Legend(const std::vector<QString> &names);
void hover(QPointF pos);
void resize(); // called when the chart size changes.
private:
@@ -24,7 +25,6 @@ private:
double width;
Entry(const QString &name, int idx, int numBins, QGraphicsItem *parent);
};
- QGraphicsWidget *chart;
int displayedItems;
double width;
double height;