forked from qt-creator/qt-creator
QmlDesigner: Adding qsTrId() support
Task-number: QTBUG-48850 Change-Id: I16a0612ec29b552a3d46f2563fdc2a043b9dec7e Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
committed by
Takumi ASAKI
parent
b242c100cb
commit
44bb3cb4c3
@@ -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()
|
||||
|
Reference in New Issue
Block a user