qt5base-lts/tests/auto/gui/image/qicoimageformat
Serge Lysenko f807a6de2c Fix QImageReader::size() to return correct size for .ico files.
According to MSDN, the zero value of ICONDIRENTRY bHeight and bWidth
fields mean a maximum icon size 256 pixels. So QtIcoHandler::option()
should return 256 instead of 0 pixels for such icons. Also there is
fixed wrong seek offset at the second call on this method.

http://blogs.msdn.com/b/oldnewthing/archive/2010/10/18/10077133.aspx

Task-number: QTBUG-48103
Change-Id: I99f0c9720fd58889045b0c73c51498f2065b0b91
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
2015-09-17 16:30:37 +00:00
..
icons Make the ICO image handler capable of reading CUR files too. 2014-06-05 19:10:58 +02:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qicoimageformat.pro fix usage of wince scope 2015-06-05 10:29:10 +00:00
qicoimageformat.qrc Android: Fix qicoimageformat test. 2014-12-22 08:34:05 +01:00
tst_qicoimageformat.cpp Fix QImageReader::size() to return correct size for .ico files. 2015-09-17 16:30:37 +00:00