QmlJS: Fix false-positive errors reported for ListElement, Connections.

Task-number: QTCREATORBUG-2802
Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-10-20 11:05:21 +02:00
parent 213f2930ee
commit a2824be292

View File

@@ -207,7 +207,8 @@ void ScopeBuilder::setQmlScopeObject(Node *node)
if (const QmlObjectValue *qmlMetaObject = dynamic_cast<const QmlObjectValue *>(prototype)) {
if ((qmlMetaObject->className() == QLatin1String("ListElement")
|| qmlMetaObject->className() == QLatin1String("Connections")
) && qmlMetaObject->packageName() == QLatin1String("Qt")) {
) && (qmlMetaObject->packageName() == QLatin1String("Qt")
|| qmlMetaObject->packageName() == QLatin1String("QtQuick"))) {
scopeChain.qmlScopeObjects.clear();
break;
}