diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-05-25 14:54:34 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-06-13 21:15:08 +0000 |
commit | 245bdc8ec31755d6ab38b796014bdcab6a1d17ae (patch) | |
tree | 420fea3ae1f436e02d6146876575c86543cd8bbb /doc/src/images/googlesuggest-example.png | |
parent | 0a133035963b83e886578b9621b1275780c7d9cf (diff) |
QIconEngine::scaledPixmap() gets the unscaled size of the pixmap, not
the scaled one. This is correctly handled by QSvgIconEngine,
QAppleIconEngine, QAndroidPlatformIconEngine and QWindowsIconEngine
but not internally. Therefore fix this here and also make sure the
pixmap with the correct dpr is saved in the QPixmapCache to avoid a
detach resulting in an increased memory usage when the pixmap dpr did
not match the expected dpr.
Fixes: QTBUG-124573
Change-Id: Ic75d7a89dae89da326c72cac326490f49d135fa7
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'doc/src/images/googlesuggest-example.png')
0 files changed, 0 insertions, 0 deletions