QmlDesigner: Add support for object properties

property QtObject: myObject: QtObject {}

Change-Id: I1f1428bdb383c31fd2976bd7ac69087da54d1044
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2022-03-25 19:32:11 +01:00
parent 6271b7ad85
commit dc6dbbf082

View File

@@ -97,6 +97,9 @@ static TypeName resolveTypeName(const ASTPropertyReference *ref, const ContextPt
if (const CppComponentValue * componentObjectValue = value->asCppComponentValue()) { if (const CppComponentValue * componentObjectValue = value->asCppComponentValue()) {
type = componentObjectValue->className().toUtf8(); type = componentObjectValue->className().toUtf8();
dotProperties = getObjectTypes(componentObjectValue, context); dotProperties = getObjectTypes(componentObjectValue, context);
} else if (const ObjectValue * objectValue = value->asObjectValue()) {
type = objectValue->className().toUtf8();
dotProperties = getObjectTypes(objectValue, context);
} }
if (type == "alias") { if (type == "alias") {