Remove ifdef now that we depend on Qt >= 6.9.0

This commit is contained in:
Albert Astals Cid
2026-03-23 22:57:17 +01:00
parent e28c48cfeb
commit 38b8b70304
2 changed files with 0 additions and 13 deletions

View File

@@ -513,21 +513,12 @@ bool QAVIFHandler::decode_one_frame()
#else #else
switch (m_decoder->image->imir.axis) { switch (m_decoder->image->imir.axis) {
#endif #endif
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
case 0: // top-to-bottom
result = result.mirrored(false, true);
break;
case 1: // left-to-right
result = result.mirrored(true, false);
break;
#else
case 0: // top-to-bottom case 0: // top-to-bottom
result = result.flipped(Qt::Vertical); result = result.flipped(Qt::Vertical);
break; break;
case 1: // left-to-right case 1: // left-to-right
result = result.flipped(Qt::Horizontal); result = result.flipped(Qt::Horizontal);
break; break;
#endif
} }
} }

View File

@@ -474,11 +474,7 @@ bool IFFHandler::readMayaImage(QImage *image)
painter.setCompositionMode(QPainter::CompositionMode_Source); painter.setCompositionMode(QPainter::CompositionMode_Source);
painter.drawImage(tp, ti); painter.drawImage(tp, ti);
} }
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
img.mirror(false, true);
#else
img.flip(Qt::Orientation::Vertical); img.flip(Qt::Orientation::Vertical);
#endif
addMetadata(img, form); addMetadata(img, form);
*image = img; *image = img;