Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.3
-
None
Description
As of right now, https://doc.qt.io/qt-5/qobject.html#tr shows a signature for QObject::tr as
QString QObject::tr(const char *sourceText, const char *disambiguation = Q_OBJECT, int n = Q_OBJECT)
The source for the documentation in qobject.cpp is
{{/*!}}
\fn QString QObject::tr(const char *sourceText, const char *disambiguation, int n)
\reentrant
and the signature in the header is
static QString tr(const char *sourceText, const char * = nullptr, int = -1)
qdoc should document the default values of the parameters. Note that the parameters are unnamed in the header file, which might be throwing qdoc off somehow.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-75864 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
264836,4 | doc: Fix tr() documentation issue | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |