diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2016-07-22 11:13:41 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2016-07-27 11:46:11 +0000 |
commit | 7bf002c3b3f8009138fca217c7fa0c234aed21bd (patch) | |
tree | 1fa917d4c8bf0b5851d86d6397aa3dc9577e5781 /src/widgets/itemviews/qabstractitemview_p.h | |
parent | 5b64b64717caca231d399a138e747bdded9c116c (diff) |
Backwards compatibility fix: No default colormap for Mono QImages
This is a partial revert of a4e2f2e687ca7aec88ecf82f72d42ac61e17a5b9.
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>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemview_p.h')
0 files changed, 0 insertions, 0 deletions