forked from qt-creator/qt-creator
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 <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -441,6 +441,10 @@ QVector<PropertyInfo> 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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user