summaryrefslogtreecommitdiffstats
path: root/stats/legend.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-03 12:49:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-03 13:56:05 -0800
commit9beec46e22cbe53b011c10f204d56b3750a87edb (patch)
tree85b44d79e0da62adc27ad8265a0d68a3c1b59b21 /stats/legend.h
parentb188560ae57304676fb10d8015dc2e3985e44c42 (diff)
downloadsubsurface-9beec46e22cbe53b011c10f204d56b3750a87edb.tar.gz
statistics: use RoundRectItem for legend and info-box
Dirk says rounded corners look better. This now looks a bit extreme to me and probably the border size should be increased. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/legend.h')
-rw-r--r--stats/legend.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stats/legend.h b/stats/legend.h
index e6c5af1e0..2baf6f67b 100644
--- a/stats/legend.h
+++ b/stats/legend.h
@@ -3,13 +3,14 @@
#ifndef STATS_LEGEND_H
#define STATS_LEGEND_H
+#include "backend-shared/roundrectitem.h"
+
#include <memory>
#include <vector>
-#include <QGraphicsRectItem>
class QGraphicsSceneMouseEvent;
-class Legend : public QGraphicsRectItem {
+class Legend : public RoundRectItem {
public:
Legend(QGraphicsWidget *chart, const std::vector<QString> &names);
void hover(QPointF pos);