|author||Samuel Rødal <firstname.lastname@example.org>||2012-07-24 15:23:49 +0200|
|committer||Qt by Nokia <email@example.com>||2012-08-29 16:53:00 +0200|
Made QImage::fill(uint pixel) for RGB888 accept QRgb values.
Previously QImage::fill() for Format_RGB888 expected a BGR value instead of the RGB order defined by QRgb, making it counter intuitive to use related to the 32-bit formats. Fixed the QPixelLayout data for RGB888 and changed the byte order of quint24 based on what the optimized image conversion routines expect. Change-Id: I72926debbc6f5b5cb10b8aa0b2a2a916a04db946 Reviewed-by: Kim M. Kalland <firstname.lastname@example.org>
Diffstat (limited to 'dist')
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index c5db0852b1..6cea7fed9a 100644
@@ -444,6 +444,10 @@ QtGui
* QOpenGLPaintDevice has been added to be able to use QPainter to render into
the currently bound context.
+* Behavioral change in QImage::fill() on an image with format Format_RGB888:
+ For consistency with RGB32 and other 32-bit formats, function now expects
+ image data in RGB layout as opposed to BGR layout.
* QInputContext removed as well as related getters and setters on QWidget and QApplication.