Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.2
-
None
-
Mac OSX 10.10 / iOS 7.1
Description
Hello.
I 'm currently working on an application and when I use the QT_TR_NOOP
ListElement { textNode: QT_TR_NOOP("Visit Web Page"); pageLink: "" }
When I run the application, it gives me following error
QQmlApplicationEngine failed to load component
qrc:/platform/ios/qml/main.qml:78 ListElement: cannot use script for property value
I think I found the problem. As I understand, QT_TR_NOOP is just the identifier with no affect that helps Linguist. So QtQuickCompiler should ignore QT_TR_NOOP. But the generating lines are:
// line 78 context->lineNumber = 78; temps[0] = context->compilationUnit->runtimeStrings[125]; { QV4::Scope innerScope(context); QV4::ScopedCallData callData(innerScope, 1); callData->thisObject = QV4::Encode::undefined(); callData->args[0] = temps[0]; { QV4::Value retval; retval = QV4::Runtime::callActivationProperty(context, context->compilationUnit->runtimeStrings[126], callData); if (context->engine->hasException) return QV4::Encode::undefined(); temps[1] = retval; } } return temps[1].asReturnedValue(); }
It behaves like a function.