From a5cc7e3c7bc08f6b1641c83a74bdff0594885d0f Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 12 Jul 2016 16:22:36 +0200 Subject: [PATCH] QmlDesigner.MetaInfo: Resolve properties using the CppComponentValue If the type is still "unknown" use the CppComponentValue to resolve the type. Change-Id: Ib404faa89a06d93f34189abfc7427122567ff25a Reviewed-by: Tim Jenssen --- .../qmldesigner/designercore/metainfo/nodemetainfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp index 6b4af9e9f8f..6c5650359dc 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp @@ -441,6 +441,10 @@ QVector getQmlTypes(const CppComponentValue *objectValue, const Co TypeName type = property.second; if (!objectValue->isPointer(nameAsString) && !objectValue->isListProperty(nameAsString)) type = objectValue->propertyType(nameAsString).toUtf8(); + + if (type == "unknown" && objectValue->hasProperty(nameAsString)) + type = objectValue->propertyType(nameAsString).toUtf8(); + propertyList.append(qMakePair(name, type)); }