qt6-bb10/tests/auto/gui/image/qimage
Eirik Aavitsland 7bf002c3b3 Backwards compatibility fix: No default colormap for Mono QImages
This is a partial revert of a4e2f2e687.

That fix tried to avoid the risk of a crash in pixel() by ensuring
Mono QImages created with external data also got a default color
table. However, that broke usable behavior in existing code that was
painting in Mono QImages using color0/color1.

This commit reverts to the old behavior, and instead expands on the
checking in pixel() so that lacking color table is handled gracefully
for all indexed formats.

Task-number: QTBUG-54827
Change-Id: I9164198bed9d20c4b12cdba40a31c141bef3128d
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2016-07-27 11:46:11 +00:00
..
images Add test for invalid exif data 2015-07-17 11:37:02 +00:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qimage.pro Android: Fix qimage test. 2015-01-08 10:09:39 +01:00
qimage.qrc Android: Fix qimage test. 2015-01-08 10:09:39 +01:00
tst_qimage.cpp Backwards compatibility fix: No default colormap for Mono QImages 2016-07-27 11:46:11 +00:00