QmlDesigner: Adding qsTrId() support

Task-number: QTBUG-48850
Change-Id: I16a0612ec29b552a3d46f2563fdc2a043b9dec7e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Takumi ASAKI
2015-12-14 16:31:29 +09:00
committed by Takumi ASAKI
parent b242c100cb
commit 44bb3cb4c3
11 changed files with 57 additions and 10 deletions

View File

@@ -1550,7 +1550,7 @@ bool Check::visit(CallExpression *ast)
const QString name = functionName(ast->base, &location);
//We have to allow the qsTr function for translation.
if (name != QLatin1String("qsTr"))
if (name != QLatin1String("qsTr") && name != QLatin1String("qsTrId"))
addMessage(ErrFunctionsNotSupportedInQmlUi, location);
if (!name.isEmpty() && name.at(0).isUpper()