summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppmodelmanager.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2023-01-11 20:43:10 +0100
committerhjk <hjk@qt.io>2023-01-12 06:46:45 +0000
commitf7bcd4f574491211d73752fb953e5af099dcac0c (patch)
tree03c609df6f91caa84df76049af6eff1d508376be /src/plugins/cppeditor/cppmodelmanager.cpp
parent85d067af916346d50da515d6f636b29b5dd4dc6c (diff)
downloadqt-creator-f7bcd4f574491211d73752fb953e5af099dcac0c.tar.gz
CppEditor: Convert to Tr::tr
Change-Id: Ic4025e06e17c45eb6dc2162fb7f21f5b8aebe84d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/cppeditor/cppmodelmanager.cpp')
-rw-r--r--src/plugins/cppeditor/cppmodelmanager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppmodelmanager.cpp b/src/plugins/cppeditor/cppmodelmanager.cpp
index 46843defcb..c80abecbac 100644
--- a/src/plugins/cppeditor/cppmodelmanager.cpp
+++ b/src/plugins/cppeditor/cppmodelmanager.cpp
@@ -537,7 +537,7 @@ void CppModelManager::findUnusedFunctions(const FilePath &folder)
QTC_ASSERT(functionsFilter, return);
const QPointer<Core::SearchResult> search
= Core::SearchResultWindow::instance()
- ->startNewSearch(tr("Find Unused Functions"),
+ ->startNewSearch(Tr::tr("Find Unused Functions"),
{},
{},
Core::SearchResultWindow::SearchOnly,
@@ -1253,9 +1253,8 @@ static QSet<QString> filteredFilesRemoved(const QSet<QString> &files, int fileSi
for (const QRegularExpression &rx: std::as_const(regexes)) {
QRegularExpressionMatch match = rx.match(filePath.absoluteFilePath().path());
if (match.hasMatch()) {
- const QString msg = QCoreApplication::translate(
- "CppIndexer",
- "C++ Indexer: Skipping file \"%1\" because its path matches the ignore pattern.")
+ const QString msg = Tr::tr("C++ Indexer: Skipping file \"%1\" "
+ "because its path matches the ignore pattern.")
.arg(filePath.displayName());
QMetaObject::invokeMethod(Core::MessageManager::instance(),
[msg]() { Core::MessageManager::writeSilently(msg); });