summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstring.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2025-02-06 21:28:24 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-03-06 22:39:57 +0100
commitf142bd121c5be67a5701c849cea25e7abe4cd720 (patch)
tree1ff1f136074eeafdb4fb69d086330f1ce9b68c99 /src/corelib/text/qstring.cpp
parent129b914051743c9f148247f0afca7f9d986bdc8f (diff)
QIcon::pixmap() make sure to always return a correctly sized pixmap
Some icon engines might not be able to return a properly sized pixmap. Therefore we must make sure within QIcon::pixmap() to return a pixmap with the requested size. This is done by simply adjusting the device pixel ratio instead scaling to avoid the loosy scaling until the icon is drawn later on. The dpr adjustment was already done for dpr == 1.0 so the function returned different results for different device pixel ratios ... Pick-to: 6.9 6.8 Fixes: QTBUG-133412 Change-Id: I66f2ac76ebf240a625649171b4553a3b95d7c3a1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/text/qstring.cpp')
0 files changed, 0 insertions, 0 deletions