forked from qt-creator/qt-creator
QmlDesigner: Fix metainfo
We have to check the propertyToken, because the default token is most likely invalid. e.g.: [default] property alias: something Change-Id: Ieedb1f3907c78d52f4e4406e2a2bf4d93bf1f636 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -85,7 +85,7 @@ static TypeName resolveTypeName(const ASTPropertyReference *ref, const ContextPt
|
||||
{
|
||||
TypeName type = "unknown";
|
||||
|
||||
if (ref->ast()->defaultToken.isValid()) {
|
||||
if (ref->ast()->propertyToken.isValid()) {
|
||||
type = ref->ast()->memberType->name.toUtf8();
|
||||
|
||||
if (type == "alias") {
|
||||
|
Reference in New Issue
Block a user