-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters