summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-16 16:19:28 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-17 08:05:01 +1300
commit85a3cbf8af3ac19495572c96be167539660a8ca4 (patch)
tree2453125864a10e2283e5af8589b5109fba1cc954 /qt-ui
parent12dd46c1409dee7f09dcd970728681976459296e (diff)
downloadsubsurface-85a3cbf8af3ac19495572c96be167539660a8ca4.tar.gz
Fix the colors of the rectangle
Correct pen and brush set. the ToolTip now is correctly rounded, translucent and happy. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/divetooltipitem.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp
index 42aaf1d2c..db2bd1f02 100644
--- a/qt-ui/profile/divetooltipitem.cpp
+++ b/qt-ui/profile/divetooltipitem.cpp
@@ -137,7 +137,6 @@ ToolTipItem::ToolTipItem(QGraphicsItem *parent) : QGraphicsRectItem(parent),
QColor c = QColor(Qt::black);
c.setAlpha(155);
setBrush(c);
- setPen(QPen(QBrush(Qt::transparent), 0));
setZValue(99);
@@ -149,8 +148,7 @@ ToolTipItem::ToolTipItem(QGraphicsItem *parent) : QGraphicsRectItem(parent),
title->setPen(QPen(Qt::white, 1));
title->setBrush(Qt::white);
- setBrush(QBrush(Qt::white));
- setPen(QPen(Qt::black, 0.5));
+ setPen(QPen(Qt::white, 2));
}
ToolTipItem::~ToolTipItem()