forked from qt-creator/qt-creator
QmlJS: Fix type lookup issue.
0c0ffab1bb
accidentally always returned
null if the type was not an enum.
Change-Id: Ie16d96e59cefa50c345cddb4a053fd8b60ba3cd6
Reviewed-on: http://codereview.qt.nokia.com/1693
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -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("::"));
|
||||
|
Reference in New Issue
Block a user