Some icon glyphs might not be square, and actualSize needs to return a size that fits into, and maintains the aspect ratio of, the requested size. Compute the bounding rect of the text/glyph that would be rendered, and scale it to fit into the requested size. Use that to return a pixmap of the correct size. As a drive-by, fix the cache-testing by comparing the deviceIndependentSize of the stored pixmap with the size we want. Change-Id: Ic6fd0f0e260b3e3946d032941d9b677463d5c145 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit be9682d372e0021ff112817dc146f5768ac6f28c) 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%