QmlJsCheck: Improve error message for M222

Task-number: QDS-11981
Change-Id: I2ce984f88fe738561871fdae450430963e851a9e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
(cherry picked from commit 5960b320b9)
This commit is contained in:
Thomas Hartmann
2024-09-18 13:22:43 +02:00
parent 395f1335a0
commit 3f95e21e8d

View File

@@ -209,8 +209,10 @@ StaticAnalysisMessages::StaticAnalysisMessages()
Tr::tr("This type (%1) is not supported as a root element of a UI file (.ui.qml)."), 1);
newMsg(ErrUnsupportedTypeInQmlUi, Error,
Tr::tr("This type (%1) is not supported in a UI file (.ui.qml)."), 1);
newMsg(ErrFunctionsNotSupportedInQmlUi, Error,
Tr::tr("Functions are not supported in a UI file (.ui.qml)."));
newMsg(
ErrFunctionsNotSupportedInQmlUi,
Error,
Tr::tr("Arbitrary functions and function calls outside of a Connections object are not supported in a UI file (.ui.qml)."));
newMsg(ErrBlocksNotSupportedInQmlUi, Error,
Tr::tr("JavaScript blocks are not supported in a UI file (.ui.qml)."));
newMsg(ErrBehavioursNotSupportedInQmlUi, Error,