Commit eda93bde authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix type lookup issue.

0c0ffab1 accidentally always returned
null if the type was not an enum.

Change-Id: Ie16d96e59cefa50c345cddb4a053fd8b60ba3cd6
Reviewed-on: http://codereview.qt.nokia.com/1693

Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 5e410ae6
......@@ -305,6 +305,9 @@ const Value *QmlObjectValue::propertyValue(const FakeMetaProperty &prop) const
value = valueOwner()->anchorLineValue();
}
if (value)
return value;
// might be an enum
const QmlObjectValue *base = this;
const QStringList components = typeName.split(QLatin1String("::"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment