Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.0.2, 5.11.3, 5.12.3
-
Ubuntu 13.10 Windows 10
Description
A trivial nested class as a QObject derivative fools lupdate into thinking the parent class name is a namespace name that doesn't exist.
Error when lupdate parses MainWindow.cpp:
[ 22%] Generating /home/bill/src/cmake-test/translations/cmake-test_fr.ts
/home/bill/src/cmake-test/MainWindow.cpp:59: tr() cannot be called without context
/home/bill/src/cmake-test/MainWindow.cpp:59: Discarding unconsumed meta data
Updating '../../../src/cmake-test/translations/cmake-test_fr.ts'...
Found 0 source text(s) (0 new and 0 already existing)
[ 33%] Generating cmake-test_fr.qm
Updating '/home/bill/objdir/cmake-test/Debug/cmake-test_fr.qm'...
Generated 0 translation(s) (0 finished and 0 unfinished)
Explicit qualification of tr() as MainWindow::impl::tr() seems to work.
Attachments
Issue Links
- relates to
-
QTBUG-75376 lupdate is fooled by template forwards
- Closed