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

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