forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/6.0'
Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri Change-Id: I32991a77e52831dd2e24cf4a51ec252998c2d743
This commit is contained in:
@@ -1236,7 +1236,11 @@ bool Check::visit(FunctionExpression *ast)
|
||||
}
|
||||
}
|
||||
|
||||
addMessage(ErrFunctionsNotSupportedInQmlUi, locationFromRange(locfunc, loclparen));
|
||||
const bool isDirectInConnectionsScope =
|
||||
(!m_typeStack.isEmpty() && m_typeStack.last() == "Connections");
|
||||
|
||||
if (!isDirectInConnectionsScope)
|
||||
addMessage(ErrFunctionsNotSupportedInQmlUi, locationFromRange(locfunc, loclparen));
|
||||
|
||||
DeclarationsCheck bodyCheck;
|
||||
addMessages(bodyCheck(ast));
|
||||
|
||||
Reference in New Issue
Block a user