qt5base-lts/tests/auto/gui/image
David Sansome c3ffcbd9a2 Scale icons returned by QIcon::fromTheme.
The icon engine behind icons that are loaded from QIcon::fromTheme does
not scale any pixmaps that it returns. When using an icon theme with an
incomplete set of icons (for example, only a "128x128" folder),
QIcon::pixmap will always return 128x128 pixmaps even if you ask for
one of size 22x22.

This is contrary to the QIcon::pixmap documentation that says "The
pixmap might be smaller than requested, but never larger."

This patch uses the same code that is in the main QIcon class in the
PixmapEntry QIconLoaderEngineEntry to scale pixmaps if they are too big.

Change-Id: Ic25a3628ac82cfb899574245f658490a2dd49d54
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
2012-10-10 08:45:22 +02:00
..
qicoimageformat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qicon Scale icons returned by QIcon::fromTheme. 2012-10-10 08:45:22 +02:00
qimage Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qimageiohandler Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qimagereader Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qimagewriter Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmovie Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpicture Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpixmap Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpixmapcache Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
image.pro QIcon: move back to QtGui 2012-05-18 21:42:38 +02:00