qt5base-lts/tests/auto/gui/image
Morten Johan Sørvig 46a552583f Teach QPixmapIconEngine how to handle @Nx pixmaps
Bring QPixmapIconEngine on par with QIconLoaderEngine
when it comes to @Nx pixmap handling: Make the scale
factor a test parameter during icon lookup.

This allows storing e.g 16x16@1, 16x16@2, 16x16@3 versions
of a pixmap in the icon, and then having QIcon select
the correct one based on the target devicePixelRatio.

Extend the qiconhighdpi test to also cover QPixmapIconEngine,
via the addPixmap() API.

The corner cases of pixmap lookup can be much complicated.
QIconLoaderEngine and QPixmapIconEngine should ideally
have identical behavior in order to avoid surprises.

Change-Id: I17552cc61755bff9553c4a462e3983ac6759c13b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2020-11-08 19:49:53 +01:00
..
qicoimageformat CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qicon CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qiconhighdpi Teach QPixmapIconEngine how to handle @Nx pixmaps 2020-11-08 19:49:53 +01:00
qimage Test QImage move semantics 2020-10-16 18:49:01 +02:00
qimageiohandler CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qimagereader Add logging categories to image handlers 2020-09-30 08:39:45 +02:00
qimagewriter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmovie CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpicture CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpixmap Give QPixmap a move constructor 2020-09-23 18:00:54 +02:00
qpixmapcache CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
image.pro Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00