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>
This commit is contained in:
parent
f2d76cb524
commit
bbee8ca485
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user