From 10fa9c5c77ab5b921da2098bd2e178b9e21ac565 Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed Date: Mon, 17 Feb 2014 11:21:10 +0100 Subject: [PATCH] qmljs: correctly set Warnings WarnImperativeCodeNotEditableInVisualDesigner and WarnReferenceToParentItemNotSupportedByVisualDesigner were still declared as errors, which made files having them no editable in designer. Task-number: QTCREATORBUG-10940 Change-Id: I6edc03634c2d05b74ab0adf62e48fc6d03049d7e Reviewed-by: Thomas Hartmann --- src/libs/qmljs/qmljsstaticanalysismessage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/qmljs/qmljsstaticanalysismessage.cpp b/src/libs/qmljs/qmljsstaticanalysismessage.cpp index 3675b7363af..25241b73700 100644 --- a/src/libs/qmljs/qmljsstaticanalysismessage.cpp +++ b/src/libs/qmljs/qmljsstaticanalysismessage.cpp @@ -208,11 +208,11 @@ StaticAnalysisMessages::StaticAnalysisMessages() tr("Maximum string value length is %1."), 1); newMsg(ErrInvalidArrayValueLength, Error, tr("%1 elements expected in array value."), 1); - newMsg(WarnImperativeCodeNotEditableInVisualDesigner, Error, + newMsg(WarnImperativeCodeNotEditableInVisualDesigner, Warning, tr("Imperative code is not supported in the Qt Quick Designer.")); newMsg(WarnUnsupportedTypeInVisualDesigner, Warning, tr("This type is not supported in the Qt Quick Designer.")); - newMsg(WarnReferenceToParentItemNotSupportedByVisualDesigner, Error, + newMsg(WarnReferenceToParentItemNotSupportedByVisualDesigner, Warning, tr("Reference to parent item cannot be resolved correctly by the Qt Quick Designer.")); newMsg(WarnUndefinedValueForVisualDesigner, Warning, tr("This visual property binding cannot be evaluated in the local context "