From c6ed1d42c34f6e502c950e71c43921e7f562089a Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 12 Mar 2024 22:29:25 +0100 Subject: [PATCH] Welcome: Fix application icon size for > 200% ui scaling Use the actual image dpr for arithmetics rather than the application dpr. Fixes: QTCREATORBUG-30464 Change-Id: I52083bcca067282a677a9d0e1b7c62e9c7270c64 Reviewed-by: Cristian Adam --- src/plugins/welcome/welcomeplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 994d097024c..069fe1e2630 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -139,7 +139,7 @@ public: const QPixmap croppedLogo = logo.copy(cropR); const int lineHeight = welcomeTF.lineHeight(); const QPixmap scaledCroppedLogo = - croppedLogo.scaledToHeight((lineHeight - 12) * devicePixelRatioF(), + croppedLogo.scaledToHeight((lineHeight - 12) * croppedLogo.devicePixelRatioF(), Qt::SmoothTransformation); ideIconLabel->setPixmap(scaledCroppedLogo); ideIconLabel->setFixedHeight(lineHeight);