Merge remote-tracking branch 'origin/wip/qt6' into dev
Change-Id: I1b25b31fb8e8cd8f3e73c51cc0e4a233b6ef3363
This commit is contained in:
commit
05aed6f25f
|
@ -2,4 +2,5 @@ load(qt_build_config)
|
|||
|
||||
DEFINES += QT_NO_FOREACH QT_NO_JAVA_STYLE_ITERATORS QT_NO_LINKED_LIST
|
||||
|
||||
MODULE_VERSION = 5.15.0
|
||||
MODULE_VERSION = 6.0.0
|
||||
|
||||
|
|
|
@ -98,8 +98,7 @@ bool QMacHeifHandler::supportsOption(ImageOption option) const
|
|||
{
|
||||
return option == Quality
|
||||
|| option == Size
|
||||
|| option == ImageTransformation
|
||||
|| option == TransformedByDefault;
|
||||
|| option == ImageTransformation;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
@ -862,8 +862,7 @@ bool QTiffHandler::supportsOption(ImageOption option) const
|
|||
return option == CompressionRatio
|
||||
|| option == Size
|
||||
|| option == ImageFormat
|
||||
|| option == ImageTransformation
|
||||
|| option == TransformedByDefault;
|
||||
|| option == ImageTransformation;
|
||||
}
|
||||
|
||||
bool QTiffHandler::jumpToNextImage()
|
||||
|
|
|
@ -65,6 +65,7 @@ void tst_qheif::readImage()
|
|||
|
||||
QString path = QStringLiteral(":/heif/") + fileName;
|
||||
QImageReader reader(path);
|
||||
reader.setAutoTransform(true);
|
||||
QVERIFY(reader.canRead());
|
||||
QImage image = reader.read();
|
||||
QVERIFY(!image.isNull());
|
||||
|
@ -86,6 +87,7 @@ void tst_qheif::readProperties()
|
|||
|
||||
QString path = QStringLiteral(":/heif/") + fileName;
|
||||
QImageReader reader(path);
|
||||
reader.setAutoTransform(true);
|
||||
QCOMPARE(reader.size(), rawSize);
|
||||
QCOMPARE(int(reader.transformation()), transform);
|
||||
|
||||
|
@ -138,6 +140,7 @@ void tst_qheif::writeImage()
|
|||
QImage rimg2;
|
||||
buf2.open(QIODevice::ReadOnly);
|
||||
QImageReader reader(&buf2);
|
||||
reader.setAutoTransform(true);
|
||||
QVERIFY(reader.read(&rimg2));
|
||||
buf2.close();
|
||||
QVERIFY(rimg2.size() == img.size().transposed());
|
||||
|
|
|
@ -423,8 +423,7 @@ void tst_qtiff::readWriteNonDestructive()
|
|||
QImageReader reader(&buf);
|
||||
QCOMPARE(reader.imageFormat(), expectedFormat);
|
||||
QCOMPARE(reader.size(), image.size());
|
||||
QCOMPARE(reader.autoTransform(), true);
|
||||
reader.setAutoTransform(false);
|
||||
QCOMPARE(reader.autoTransform(), false);
|
||||
QCOMPARE(reader.transformation(), transformation);
|
||||
QImage image2 = reader.read();
|
||||
QVERIFY2(!image.isNull(), qPrintable(reader.errorString()));
|
||||
|
@ -469,8 +468,7 @@ void tst_qtiff::supportsOption_data()
|
|||
QTest::newRow("tiff") << (QIntList()
|
||||
<< QImageIOHandler::Size
|
||||
<< QImageIOHandler::CompressionRatio
|
||||
<< QImageIOHandler::ImageTransformation
|
||||
<< QImageIOHandler::TransformedByDefault);
|
||||
<< QImageIOHandler::ImageTransformation);
|
||||
}
|
||||
|
||||
void tst_qtiff::supportsOption()
|
||||
|
@ -492,8 +490,7 @@ void tst_qtiff::supportsOption()
|
|||
<< QImageIOHandler::Endianness
|
||||
<< QImageIOHandler::Animation
|
||||
<< QImageIOHandler::BackgroundColor
|
||||
<< QImageIOHandler::ImageTransformation
|
||||
<< QImageIOHandler::TransformedByDefault;
|
||||
<< QImageIOHandler::ImageTransformation;
|
||||
|
||||
QImageWriter writer;
|
||||
writer.setFormat("tiff");
|
||||
|
|
Loading…
Reference in New Issue