diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-03-01 19:15:06 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-04-04 16:08:22 +0100 |
commit | 7f72a93e874f5e52612983ad3b764f07216bf62e (patch) | |
tree | 957a24c97e355f2f9e5c0369898acaa981bdf39b /src/gui/painting/qpainter.cpp | |
parent | adb49d65e0774fa6be0b0d9d490c6f1fc5066a1b (diff) |
Port QImage::Format_CMYK32 to CMYK8888
Follow the established convention that byte-oriented image formats
have the "8888" suffix, not "32". The old enum name is temporarily
left to help port other submodules.
This work has been kindly sponsored by the QGIS project
(https://qgis.org/).
Change-Id: I4b6f10cb22312b614cb9cf4b0ac439907276c538
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 148cc6c5dd..f4b9741eed 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -1766,7 +1766,7 @@ bool QPainter::begin(QPaintDevice *pd) qt_cleanup_painter_state(d); return false; } else if (img->format() == QImage::Format_Indexed8 || - img->format() == QImage::Format_CMYK32) { + img->format() == QImage::Format_CMYK8888) { // Painting on these formats is not supported. qWarning() << "QPainter::begin: Cannot paint on an image with the" << img->format() |