mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
12dd46c140
commit
85a3cbf8af
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue