QmlDesigner.MetaInfo: fix for typeinfo from the cpp code model

If the typeinfo is provided by the cpp code model if have to
use the object value for the lookup.

Task-number: QTCREATORBUG-8746
Change-Id: I42e55782ee16ddc255e2f919845a385ff1f3f636
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Thomas Hartmann
2013-04-10 14:40:52 +02:00
parent 7a05f41c0e
commit ca340c6b4e

View File

@@ -593,7 +593,7 @@ const QmlJS::CppComponentValue *NodeMetaInfoPrivate::getCppComponentValue() cons
return cppValue;
}
return 0;
return value_cast<CppComponentValue>(getObjectValue());
}
const QmlJS::ObjectValue *NodeMetaInfoPrivate::getObjectValue() const