forked from qt-creator/qt-creator
QmlJS: Fix false-positive errors reported for ListElement, Connections.
Task-number: QTCREATORBUG-2802 Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user