Commit f293e04e authored by Sandro Knauß's avatar Sandro Knauß

QColor::dark and QColor::light are deprecated.

Use QColor::darker and QColor::lighter instead.
parent 5497fb91
......@@ -198,7 +198,7 @@ void TextMessageIndicator::paintEvent(QPaintEvent * /* e */)
const int textDrawingFlags = Qt::AlignLeft | Qt::AlignTop | Qt::TextWordWrap;
// draw shadow and text
painter.setPen(palette().color(QPalette::Window).dark(115));
painter.setPen(palette().color(QPalette::Window).darker(115));
painter.drawText(xStartPoint + shadowOffset, yStartPoint + shadowOffset, textRect.width(), textRect.height(), textDrawingFlags, mMessage);
if (!mDetails.isEmpty()) {
painter.drawText(xStartPoint + shadowOffset, yStartPoint + textRect.height() + mLineSpacing + shadowOffset, textRect.width(), detailsRect.height(), textDrawingFlags, mDetails);
......
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