qt5base-lts/tests/auto
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
..
cmake Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
concurrent Improve QtConcurrent::blockingMapped tests 2020-11-04 09:40:12 +01:00
corelib Update CLDR to v38 2020-11-08 13:01:29 +01:00
dbus Adjust tst_qdbusmarshall to QVariant changes 2020-10-30 13:27:14 +01:00
gui Teach QPixmapIconEngine how to handle @Nx pixmaps 2020-11-08 19:49:53 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Update public suffix list header to latest version 2020-11-08 13:02:30 +01:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
printsupport Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql Cleanup remaining QVariant::Type uses in Qt Sql 2020-10-17 12:01:54 +02:00
testlib Selftest - copy XAUTHORITY environment variable 2020-10-28 14:27:37 +00:00
tools qmakelib test: build with qmake 2020-11-06 10:16:31 +01:00
widgets Fix a mistake when using QLatin1String::arg 2020-11-07 06:25:36 +01:00
xml Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
.prev_CMakeLists.txt CMake: Regenerate projects 2020-09-22 19:08:53 +02:00
auto.pro Don't error out when configuring Qt on a headless system 2020-09-26 14:36:13 +02:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00