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>
This commit is contained in:
Berthold Stoeger 2021-01-03 12:49:26 +01:00 committed by Dirk Hohndel
parent b188560ae5
commit 9beec46e22
5 changed files with 12 additions and 7 deletions

View file

@ -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);