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
...@@ -109,6 +109,8 @@ bool ColorTip::handleContentReplacement(const TipContent &content) const ...@@ -109,6 +109,8 @@ bool ColorTip::handleContentReplacement(const TipContent &content) const
void ColorTip::paintEvent(QPaintEvent *event) void ColorTip::paintEvent(QPaintEvent *event)
{ {
QTipLabel::paintEvent(event);
const QColor &color = static_cast<const ColorContent &>(content()).color(); const QColor &color = static_cast<const ColorContent &>(content()).color();
QPen pen; QPen pen;
...@@ -124,8 +126,6 @@ void ColorTip::paintEvent(QPaintEvent *event) ...@@ -124,8 +126,6 @@ void ColorTip::paintEvent(QPaintEvent *event)
QRect r(1, 1, rect().width() - 2, rect().height() - 2); QRect r(1, 1, rect().width() - 2, rect().height() - 2);
painter.drawTiledPixmap(r, m_tilePixMap); painter.drawTiledPixmap(r, m_tilePixMap);
painter.drawRect(r); painter.drawRect(r);
QLabel::paintEvent(event);
} }
TextTip::TextTip(QWidget *parent) : QTipLabel(parent) TextTip::TextTip(QWidget *parent) : QTipLabel(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment