summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-09-05 10:44:56 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-09-05 11:40:30 +0200
commit44000c87d352e4f88b7eea3d441a807b755698d3 (patch)
tree884c5e36606e8ee2ea9bcd77f103f45ea310859f /tests
parentddfa5b985141c5bcc0ad4da25cae565a5cbebf74 (diff)
Fix build after QColorSpace API changes
Change-Id: Iff3186cf4eccae5fc7e7e3c55c5e6eb662be9519 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/tiff/tst_qtiff.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/tiff/tst_qtiff.cpp b/tests/auto/tiff/tst_qtiff.cpp
index 61d49db..be02460 100644
--- a/tests/auto/tiff/tst_qtiff.cpp
+++ b/tests/auto/tiff/tst_qtiff.cpp
@@ -632,9 +632,8 @@ void tst_qtiff::readGray16()
void tst_qtiff::colorSpace_data()
{
- QTest::addColumn<QColorSpace::ColorSpaceId>("colorspaceId");
+ QTest::addColumn<decltype(QColorSpace::SRgb)>("namedColorSpace");
- QTest::newRow("Undefined") << QColorSpace::Undefined;
QTest::newRow("sRGB") << QColorSpace::SRgb;
QTest::newRow("sRGB(linear)") << QColorSpace::SRgbLinear;
QTest::newRow("AdobeRGB") << QColorSpace::AdobeRgb;
@@ -644,12 +643,12 @@ void tst_qtiff::colorSpace_data()
void tst_qtiff::colorSpace()
{
- QFETCH(QColorSpace::ColorSpaceId, colorspaceId);
+ QFETCH(decltype(QColorSpace::SRgb), namedColorSpace);
QImage image(prefix + "colorful.bmp");
QVERIFY(!image.isNull());
- image.setColorSpace(colorspaceId);
+ image.setColorSpace(namedColorSpace);
QByteArray output;
QBuffer buf(&output);
@@ -662,7 +661,7 @@ void tst_qtiff::colorSpace()
QImageReader reader(&buf);
QImage image2 = reader.read();
- QCOMPARE(image2.colorSpace(), QColorSpace(colorspaceId));
+ QCOMPARE(image2.colorSpace(), namedColorSpace);
QCOMPARE(image2, image);
}