qt5base-lts/tests/auto/gui
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
..
image Teach QPixmapIconEngine how to handle @Nx pixmaps 2020-11-08 19:49:53 +01:00
itemmodels Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
kernel tests: Blacklist tst_qwindow failing test on Windows 2020-11-07 19:33:37 +01:00
math3d Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
painting Rename QRangeCollection to QPageRanges, make it a proper value type 2020-11-08 11:49:54 +01:00
qopengl Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
qopenglconfig Deprecate QVariant::Type 2020-10-23 09:58:57 +02:00
qvulkan CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
rhi Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
text Support the markdown underline extension 2020-11-07 09:35:11 +01:00
util Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
gui.pro Remove winrt 2020-06-06 20:25:49 +02:00