summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-01-14 10:44:24 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 14:58:48 +0100
commitbbee8ca485acc6bad7021f4e1cb3e5b8cd32e8fc (patch)
tree6e037225451805c4a61921fb69bbf0605db56a91 /tests
parentf2d76cb524884491cca29a6f60861fb49121be11 (diff)
Fix warning in QVariant test.
Values from different enums were compared. Change-Id: I2faf73976e4b24abbdc915e8445256fe7a5be5bd Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/gui/kernel/qguivariant/test/tst_qguivariant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/kernel/qguivariant/test/tst_qguivariant.cpp b/tests/auto/gui/kernel/qguivariant/test/tst_qguivariant.cpp
index 42570751fc..7512829e09 100644
--- a/tests/auto/gui/kernel/qguivariant/test/tst_qguivariant.cpp
+++ b/tests/auto/gui/kernel/qguivariant/test/tst_qguivariant.cpp
@@ -640,7 +640,7 @@ void tst_QGuiVariant::writeToReadFromOldDataStream()
dataFileStream.setVersion(QDataStream::Qt_4_9);
QVariant readVariant;
dataFileStream >> readVariant;
- QVERIFY(readVariant.type() == QMetaType::QPolygonF);
+ QVERIFY(readVariant.userType() == QMetaType::QPolygonF);
QCOMPARE(testVariant, readVariant);
file.close();
}