summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheerendra Purohit <[email protected]>2025-07-03 11:04:10 +0530
committerDheerendra Purohit <[email protected]>2025-07-05 11:57:38 +0530
commitab1431e1fcc26107a6b62486cc1eb7f9d0b7c6b8 (patch)
treed5ba8920778e3b602608f5531888e8bff8c8f026
parent817b9612bf5bf765f9efd023609c70e6386bd1f7 (diff)
Doc: Mark QTranslator::translate as thread-safeHEADdev
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]>
-rw-r--r--src/corelib/kernel/qtranslator.cpp2
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.