Make it clear that QObject::tr() falls back to QString::fromUtf8()
The reference to trUtf8() made it even more confusing, so remove it. It's redundant and deprecated anyway. Change-Id: I9921297160db3660bb5099692bbfdaf6e85637aa Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
31915a1805
commit
89d1c7c179
@ -2144,8 +2144,8 @@ void QObject::deleteLater()
|
||||
|
||||
Returns a translated version of \a sourceText, optionally based on a
|
||||
\a disambiguation string and value of \a n for strings containing plurals;
|
||||
otherwise returns \a sourceText itself if no appropriate translated string
|
||||
is available.
|
||||
otherwise returns QString::fromUtf8(\a sourceText) if no appropriate
|
||||
translated string is available.
|
||||
|
||||
Example:
|
||||
\snippet ../widgets/mainwindows/sdi/mainwindow.cpp implicit tr context
|
||||
@ -2171,7 +2171,7 @@ void QObject::deleteLater()
|
||||
translators while performing translations is not supported. Doing
|
||||
so will probably result in crashes or other undesirable behavior.
|
||||
|
||||
\sa trUtf8(), QCoreApplication::translate(), {Internationalization with Qt}
|
||||
\sa QCoreApplication::translate(), {Internationalization with Qt}
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user