qt5base-lts/tests/auto/gui/image
Allan Sandfeld Jensen ff70c39ebc Ensure QImage::pixel() on RGB32 images returns valid QRgb values
Currently QImage::pixel() returns the raw underlying pixel values for
RGB32. For all other pixel formats the returned value is either valid
ARGB32 or ARGB32PM.

This patch masks the undefined alpha field in RGB32 so that the return
value is well defined QRgb. It also fixes one test that relied on the
previous behavior.

Change-Id: If37463528268b7419733499d1f7bfd0d1097d21e
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
2014-01-29 19:41:57 +01:00
..
qicoimageformat QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qicon tst_QIcon: Fix availableSizes() and task223279_inconsistentAddFile() 2013-07-15 16:28:25 +02:00
qimage Ensure QImage::pixel() on RGB32 images returns valid QRgb values 2014-01-29 19:41:57 +01:00
qimageiohandler QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qimagereader QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qimagewriter Check if device is opened before trying to create image handler. 2013-12-12 12:02:29 +01:00
qmovie QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qpicture QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qpixmap WinRT: Fix various test compilations 2013-10-02 12:36:05 +02:00
qpixmapcache QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
image.pro Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00