Skip to content
Snippets Groups Projects
Commit f28018ab authored by Leandro Melo's avatar Leandro Melo
Browse files

Fix color tooltip crash on mac.

Reviewed-by: hjk
Reviewed-by: dt
Task-number: QTCREATORBUG-2038
parent 90872c63
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,8 @@ bool ColorTip::handleContentReplacement(const TipContent &content) const
void ColorTip::paintEvent(QPaintEvent *event)
{
QTipLabel::paintEvent(event);
const QColor &color = static_cast<const ColorContent &>(content()).color();
QPen pen;
......@@ -124,8 +126,6 @@ void ColorTip::paintEvent(QPaintEvent *event)
QRect r(1, 1, rect().width() - 2, rect().height() - 2);
painter.drawTiledPixmap(r, m_tilePixMap);
painter.drawRect(r);
QLabel::paintEvent(event);
}
TextTip::TextTip(QWidget *parent) : QTipLabel(parent)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment