From 966cdd69ded3803b52be40e479130e31282cdecb Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Wed, 9 Jul 2014 16:52:39 +0200 Subject: [PATCH] progressmanager_win: Load the error icon via dpiSpecificPixmap() The @2x variant looks better on HighDpi screens Change-Id: I2fe1e9973b479dc35889cf40f1091b423b512997 Reviewed-by: Eike Ziller --- .../coreplugin/progressmanager/progressmanager_win.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp b/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp index ef9935cba1e..2fa06caa14a 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp +++ b/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp @@ -41,6 +41,7 @@ #include #include +#include #include "progressmanager_p.h" @@ -122,7 +123,8 @@ void Core::Internal::ProgressManagerPrivate::doSetApplicationLabel(const QString if (text.isEmpty()) { pITask->SetOverlayIcon(winId, NULL, NULL); } else { - QPixmap pix = QPixmap(QLatin1String(":/core/images/compile_error_taskbar.png")); + QPixmap pix = Utils::StyleHelper::dpiSpecificPixmap(QLatin1String(":/core/images/compile_error_taskbar.png")); + pix.setDevicePixelRatio(1); // We want device-pixel sized font depending on the pix.height QPainter p(&pix); p.setPen(Qt::white); QFont font = p.font();