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>
bb10
Christian Kandeler 2014-01-14 10:44:24 +01:00 committed by The Qt Project
parent f2d76cb524
commit bbee8ca485
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}