qt5base-lts/tests/auto/gui/image/qpixmap
Johan Klokkhammer Helsing efa6e98912 QPixmap don't assume QPlatformScreen::format is opaque
QRasterPlatformPixmap::systemOpaqueFormat returned QPlatformScreen::format
without checking that the format was actually opaque.

This caused several QPixmap tests to fail on Wayland because Wayland
compositors don't communicate the native format of the screen, just a list of
supported pixel formats, so we just return ARGB32_premultiplied in
QWaylandScreen::format().

Rename the method systemOpaqueFormat to systemNativeFormat since that's how
it's used most of the time. And do a conversion when we actually care whether
the format is opaque or not.

Task-number: QTBUG-51748
Change-Id: I47dc1c3f185fb802016ca361206d47d02e8d3cf1
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2018-03-19 08:23:54 +00:00
..
convertFromImage Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
convertFromToHICON Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
images Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
loadFromData Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qpixmap.pro QtGui: Remove Windows CE. 2016-03-30 17:35:41 +00:00
qpixmap.qrc Android: Fix qpixmap test. 2015-01-08 10:10:50 +01:00
tst_qpixmap.cpp QPixmap don't assume QPlatformScreen::format is opaque 2018-03-19 08:23:54 +00:00