qt5base-lts/tests/auto/gui
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
..
image Scale icons returned by QIcon::fromTheme. 2012-10-10 08:45:22 +02:00
itemmodels Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel Revise QClipboard auto tests 2012-09-27 09:14:51 +02:00
math3d Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
painting Test: Enable tst_QWMatrix::operator_star_qwmatrix 2012-09-27 21:13:52 +02:00
qopengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
text Handle additional format ranges when itemizing. 2012-10-08 17:22:56 +02:00
util Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00