From 85a3cbf8af3ac19495572c96be167539660a8ca4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 16 Jan 2015 16:19:28 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/divetooltipitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3-70-g09d2