mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b188560ae5
commit
9beec46e22
5 changed files with 12 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue