mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-07-03 17:19:12 -04:00
Remove ifdef now that we depend on Qt >= 6.9.0
This commit is contained in:
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user