aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2024-03-12 22:29:25 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2024-03-12 21:50:58 +0000
commitc6ed1d42c34f6e502c950e71c43921e7f562089a (patch)
tree34e6563f03119059f5d726d836b14cdb6668565f
parent8713919f31f2aecc7e7c15f1fc9ce7906b8fefa0 (diff)
Welcome: Fix application icon size for > 200% ui scalingv13.0.0-rc1
Use the actual image dpr for arithmetics rather than the application dpr. Fixes: QTCREATORBUG-30464 Change-Id: I52083bcca067282a677a9d0e1b7c62e9c7270c64 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r--src/plugins/welcome/welcomeplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp
index 994d097024..069fe1e263 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);