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.8 Fixes: QTBUG-133412 Change-Id: I66f2ac76ebf240a625649171b4553a3b95d7c3a1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit f142bd121c5be67a5701c849cea25e7abe4cd720) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%