Commit 11b30a22 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlJS:: Allow qsTr() for .ui.qml files

Change-Id: I8ccae13653bbb010853d99be9136bf364b823c3d
Reviewed-by: default avatarFawzi Mohamed <>
parent 033b711d
......@@ -1541,7 +1541,10 @@ bool Check::visit(CallExpression *ast)
SourceLocation location;
const QString name = functionName(ast->base, &location);
addMessage(ErrFunctionsNotSupportedInQmlUi, location);
//We have to allow the qsTr function for translation.
if (name != QLatin1String("qsTr"))
addMessage(ErrFunctionsNotSupportedInQmlUi, location);
if (!name.isEmpty() &&
&& name != QLatin1String("String")
&& name != QLatin1String("Boolean")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment