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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue