forked from qt-creator/qt-creator
progressmanager_win: Load the error icon via dpiSpecificPixmap()
The @2x variant looks better on HighDpi screens Change-Id: I2fe1e9973b479dc35889cf40f1091b423b512997 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include <QLabel>
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/stylehelper.h>
|
||||
|
||||
#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();
|
||||
|
||||
Reference in New Issue
Block a user