summaryrefslogtreecommitdiffstats
path: root/stats/informationbox.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/informationbox.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/informationbox.h')
-rw-r--r--stats/informationbox.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stats/informationbox.h b/stats/informationbox.h
index 7e9253dc7..0c71447aa 100644
--- a/stats/informationbox.h
+++ b/stats/informationbox.h
@@ -4,9 +4,10 @@
#ifndef INFORMATION_BOX_H
#define INFORMATION_BOX_H
+#include "backend-shared/roundrectitem.h"
+
#include <vector>
#include <memory>
-#include <QGraphicsRectItem>
#include <QFont>
namespace QtCharts {
@@ -15,7 +16,7 @@ namespace QtCharts {
struct dive;
// Information window showing data of highlighted dive
-struct InformationBox : QGraphicsRectItem {
+struct InformationBox : RoundRectItem {
InformationBox(QtCharts::QChart *chart);
void setText(const std::vector<QString> &text, QPointF pos);
void setPos(QPointF pos);