Merge PR #2816: LCD: drop workaround for Qt >= 5.6.2.

This commit is contained in:
Mikkel Krautz 2017-02-05 12:31:51 +01:00 committed by GitHub
commit 78ff4fc27f

View File

@ -189,7 +189,7 @@ LCD::LCD() : QObject() {
}
qiLogo = QIcon(QLatin1String("skin:mumble.svg")).pixmap(48,48).toImage().convertToFormat(QImage::Format_MonoLSB);
#if QT_VERSION >= 0x050600
#if QT_VERSION >= 0x050600 && QT_VERSION <= 0x050601
// Don't invert the logo image when using Qt 5.6.
// See mumble-voip/mumble#2429
#else
@ -250,7 +250,7 @@ void LCD::updateUserView() {
QPainter painter(img);
painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing, false);
#if QT_VERSION >= 0x050600
#if QT_VERSION >= 0x050600 && QT_VERSION <= 0x050601
// Use Qt::white instead of Qt::color1 on Qt 5.6.
// See mumble-voip/mumble#2429
painter.setPen(Qt::white);