diff --git a/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp b/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp index ac21a46b54c..ef9935cba1e 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp +++ b/src/plugins/coreplugin/progressmanager/progressmanager_win.cpp @@ -126,9 +126,9 @@ void Core::Internal::ProgressManagerPrivate::doSetApplicationLabel(const QString QPainter p(&pix); p.setPen(Qt::white); QFont font = p.font(); - font.setPointSize(font.pointSize()-2); + font.setPixelSize(pix.height() * 0.5); p.setFont(font); - p.drawText(QRect(QPoint(0,0), pix.size()), Qt::AlignHCenter|Qt::AlignCenter, text); + p.drawText(pix.rect(), Qt::AlignCenter, text); #if QT_VERSION >= 0x050000 const HICON icon = qt_pixmapToWinHICON(pix); #else