forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/qds/dev' into 12.0
Conflicts: share/qtcreator/qmldesigner/connectionseditor/SuggestionPopup.qml share/qtcreator/themes/dark.creatortheme share/qtcreator/themes/default.creatortheme share/qtcreator/themes/flat-dark.creatortheme share/qtcreator/themes/flat-light.creatortheme share/qtcreator/themes/flat.creatortheme src/libs/utils/CMakeLists.txt src/plugins/CMakeLists.txt src/plugins/qmlprojectmanager/qmlproject.cpp src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: Idd87c281e1aa7b7fd2702473ad55e18563cbfb21
This commit is contained in:
@@ -1377,7 +1377,11 @@ bool Check::visit(BinaryExpression *ast)
|
||||
|
||||
SourceLocation expressionSourceLocation = locationFromRange(ast->firstSourceLocation(),
|
||||
ast->lastSourceLocation());
|
||||
if (expressionAffectsVisualAspects(ast))
|
||||
|
||||
const bool isDirectInConnectionsScope = (!m_typeStack.isEmpty()
|
||||
&& m_typeStack.last() == "Connections");
|
||||
|
||||
if (expressionAffectsVisualAspects(ast) && !isDirectInConnectionsScope)
|
||||
addMessage(WarnImperativeCodeNotEditableInVisualDesigner, expressionSourceLocation);
|
||||
|
||||
// check ==, !=
|
||||
|
||||
Reference in New Issue
Block a user