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 <QLabel>
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
#include <utils/stylehelper.h>
|
||||||
|
|
||||||
#include "progressmanager_p.h"
|
#include "progressmanager_p.h"
|
||||||
|
|
||||||
@@ -122,7 +123,8 @@ void Core::Internal::ProgressManagerPrivate::doSetApplicationLabel(const QString
|
|||||||
if (text.isEmpty()) {
|
if (text.isEmpty()) {
|
||||||
pITask->SetOverlayIcon(winId, NULL, NULL);
|
pITask->SetOverlayIcon(winId, NULL, NULL);
|
||||||
} else {
|
} 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);
|
QPainter p(&pix);
|
||||||
p.setPen(Qt::white);
|
p.setPen(Qt::white);
|
||||||
QFont font = p.font();
|
QFont font = p.font();
|
||||||
|
|||||||
Reference in New Issue
Block a user