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
|
@ -8,9 +8,10 @@
|
|||
static const QColor informationBorderColor(Qt::black);
|
||||
static const QColor informationColor(0xff, 0xff, 0x00, 192); // Note: fourth argument is opacity
|
||||
static const int informationBorder = 2;
|
||||
static const double informationBorderRadius = 4.0; // Radius of rounded corners
|
||||
static const int distanceFromPointer = 10; // Distance to place box from mouse pointer or scatter item
|
||||
|
||||
InformationBox::InformationBox(QtCharts::QChart *chart) : QGraphicsRectItem(chart), chart(chart)
|
||||
InformationBox::InformationBox(QtCharts::QChart *chart) : RoundRectItem(informationBorderRadius, chart), chart(chart)
|
||||
{
|
||||
setPen(QPen(informationBorderColor, informationBorder));
|
||||
setBrush(informationColor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue