diff options
author | Dheerendra Purohit <[email protected]> | 2025-07-03 11:04:10 +0530 |
---|---|---|
committer | Dheerendra Purohit <[email protected]> | 2025-07-05 11:57:38 +0530 |
commit | ab1431e1fcc26107a6b62486cc1eb7f9d0b7c6b8 (patch) | |
tree | d5ba8920778e3b602608f5531888e8bff8c8f026 /src | |
parent | 817b9612bf5bf765f9efd023609c70e6386bd1f7 (diff) |
The documentation for QTranslator::translate() was updated to include
the \threadsafe tag. A note was added stating it can be safely called
from multiple threads.
Pick-to: 6.10 6.9
Fixes: QTBUG-88466
Change-Id: Ie84b7adb45a41d62f7e8343e606b3149d8fbc994
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qtranslator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp index 6b68cb7a513..8e655ae9cd6 100644 --- a/src/corelib/kernel/qtranslator.cpp +++ b/src/corelib/kernel/qtranslator.cpp @@ -1065,6 +1065,8 @@ void QTranslatorPrivate::clear() } /*! + \threadsafe + Returns the translation for the key (\a context, \a sourceText, \a disambiguation). If none is found, also tries (\a context, \a sourceText, ""). If that still fails, returns a null string. |