From 46f407126ef3e94d59254012cdc34d6a4ad2faf2 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 5 Dec 2019 16:14:14 +0100 Subject: MetaObject: store the QMetaType of the properties Change-Id: I563e7232b70e94de4184f2c23a581319313dcf5c Reviewed-by: Thiago Macieira --- tests/auto/tools/moc/tst_moc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/tools') diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 08c604e37e..31fe68a64e 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -3945,7 +3945,7 @@ void tst_Moc::testQNamespace() EnumFromNamespaceClass obj; const QVariant prop = obj.property("prop"); - QCOMPARE(prop.type(), QMetaType::Int); + QCOMPARE(prop.userType(), QMetaType::fromType().id()); QCOMPARE(prop.toInt(), int(FooNamespace::Enum1::Key2)); } -- cgit v1.2.3