From 3f95e21e8d0fee122477af10eb8594ee860cd88a Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 18 Sep 2024 13:22:43 +0200 Subject: [PATCH] QmlJsCheck: Improve error message for M222 Task-number: QDS-11981 Change-Id: I2ce984f88fe738561871fdae450430963e851a9e Reviewed-by: Thomas Hartmann Reviewed-by: Pranta Ghosh Dastider (cherry picked from commit 5960b320b9e76aa9c0e0f76f20a4877fccb85cb8) --- src/libs/qmljs/qmljsstaticanalysismessage.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/qmljs/qmljsstaticanalysismessage.cpp b/src/libs/qmljs/qmljsstaticanalysismessage.cpp index fc4579245db..db539099c64 100644 --- a/src/libs/qmljs/qmljsstaticanalysismessage.cpp +++ b/src/libs/qmljs/qmljsstaticanalysismessage.cpp @@ -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,