mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-09-22 07:07:00 -04:00
Fix compilation failure with Qt 6.7
This commit is contained in:
@@ -273,10 +273,10 @@ bool SoftimagePICHandler::read(QImage *image)
|
||||
bool SoftimagePICHandler::write(const QImage &image)
|
||||
{
|
||||
bool alpha = image.hasAlphaChannel();
|
||||
auto tcs = QColorSpace();
|
||||
auto tfmt = image.format();
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||
auto cs = image.colorSpace();
|
||||
auto tfmt = image.format();
|
||||
auto tcs = QColorSpace();
|
||||
if (cs.isValid() && cs.colorModel() == QColorSpace::ColorModel::Cmyk && tfmt == QImage::Format_CMYK8888) {
|
||||
tcs = QColorSpace(QColorSpace::SRgb);
|
||||
tfmt = QImage::Format_RGB32;
|
||||
|
||||
Reference in New Issue
Block a user