diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-04-17 16:04:37 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-04-18 09:17:01 +0000 |
commit | c709e6d5552c734e795b61090288a81abc6321ed (patch) | |
tree | 13e739a1ff7c8360bacc24c14c2065f73ec643f9 /src/libs | |
parent | 90c4826c2937be4685a78349f76aaedfc33964dd (diff) |
QmlJS: Improve/simplify error message
Task-number: QDS-12149
Change-Id: Idaa9bb2624aa3591cafd3ea6c8b62b9dea7cb61a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/qmljs/qmljsstaticanalysismessage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsstaticanalysismessage.cpp b/src/libs/qmljs/qmljsstaticanalysismessage.cpp index 5b15e69428..432b97aba7 100644 --- a/src/libs/qmljs/qmljsstaticanalysismessage.cpp +++ b/src/libs/qmljs/qmljsstaticanalysismessage.cpp @@ -189,8 +189,9 @@ StaticAnalysisMessages::StaticAnalysisMessages() Tr::tr("Maximum string value length is %1."), 1); newMsg(ErrInvalidArrayValueLength, Error, Tr::tr("%1 elements expected in array value."), 1); - newMsg(WarnImperativeCodeNotEditableInVisualDesigner, Warning, - Tr::tr("Imperative code is not supported in Qt Design Studio.")); + newMsg(WarnImperativeCodeNotEditableInVisualDesigner, + Warning, + Tr::tr("JavaScript can break the visual tooling in Qt Design Studio.")); newMsg(WarnUnsupportedTypeInVisualDesigner, Warning, Tr::tr("This type (%1) is not supported in Qt Design Studio."), 1); newMsg(WarnReferenceToParentItemNotSupportedByVisualDesigner, Warning, |