From 2acb365dac0b2fc20993a0244466f8abb0ff2221 Mon Sep 17 00:00:00 2001 From: Marco Benelli Date: Tue, 27 Feb 2018 13:13:51 +0100 Subject: qmljs: relax checks for qbs files Types information for qbs is more limited that qml; this causes qtcreator to raise false positives. This patch relax the checks and provide some type information needed by qbs files generated by the wizards. Task-number: QTCREATORBUG-19757 Change-Id: I07a1dd9d8fedaf4c5c751c2f00643f15ae39127a Reviewed-by: Christian Kandeler --- src/libs/qmljs/qmljscheck.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libs/qmljs/qmljscheck.cpp') diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index 42558f65a4..5b184d37b0 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -855,6 +855,10 @@ static bool checkTopLevelBindingForParentReference(ExpressionStatement *expStmt, void Check::visitQmlObject(Node *ast, UiQualifiedId *typeId, UiObjectInitializer *initializer) { + // TODO: currently Qbs checks are not working properly + if (_doc->language() == Dialect::QmlQbs) + return; + // Don't do type checks if it's a grouped property binding. // For instance: anchors { ... } if (_doc->bind()->isGroupedPropertyBinding(ast)) { -- cgit v1.2.1