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>
This commit is contained in:
Tomaz Canabrava 2015-01-16 16:19:28 -02:00 committed by Dirk Hohndel
parent 12dd46c140
commit 85a3cbf8af

View file

@ -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()