It's defined by Qt. Any class that defines the Q_OBJECT macro can use it, as it's part of the basic QObject class. That would be why it is not present in my source code - it's just a library call.
You may have figured out that it's a translation function, like "i18n()" in programs that use GNU gettext. Right now, since there are no extra translations, it just returns its argument, but with the help of a translation file it can be used to internationalize the program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Where in the source code is " tr" defines? For example in "MainAct.cpp":
I cannot find it!
cu
Olaf
It's defined by Qt. Any class that defines the Q_OBJECT macro can use it, as it's part of the basic QObject class. That would be why it is not present in my source code - it's just a library call.
You may have figured out that it's a translation function, like "i18n()" in programs that use GNU gettext. Right now, since there are no extra translations, it just returns its argument, but with the help of a translation file it can be used to internationalize the program.