Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.2
-
f233ad9102e79a1e1d7f619eff5aa55343f572ee (qt/qttools/dev)
Description
When calling lupdate on a file that uses QT_TR_NOOP in a constructor for a static QString it will fail to find the context. So a line like:
const QString MyClass::str1( QT_TR_NOOP( "Produces warning" ) );
will output:
tr() cannot be called without context
when using lupdate. Whereas if the result of QT_TR_NOOP is used in an assignment to the QString in the same location it is fine.
Attachments
Issue Links
- resulted in
-
QTBUG-104426 lupdate uses return type as context for free functions
-
- Closed
-