From 8f2d48e8a350dc8e6bd87f62c1d1aed760f977ca Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 16 Jan 2023 14:24:27 +0100 Subject: [PATCH] ProjectExplorer: Tr::tr clean-up Tr::tr a string that was missed, and some extra qualifications to help lupdate. Amends: c5f7f5ab0aab672180714cb172818aa3cd394c90 Change-Id: I65b98d20ed3c1f8781823c4ee6677052d1cf0fa3 Reviewed-by: hjk --- .../projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp | 2 +- src/plugins/projectexplorer/taskhub.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp index e69c101ce3a..bd43d219359 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfilegenerator.cpp @@ -111,7 +111,7 @@ Core::GeneratedFile JsonWizardFileGenerator::generateFile(const File &file, gf.setContents(Utils::TemplateEngine::processText(&nested, QString::fromUtf8(reader.data()), errorMessage)); if (!errorMessage->isEmpty()) { - *errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard", "When processing \"%1\":
%2") + *errorMessage = Tr::tr("When processing \"%1\":
%2") .arg(file.source.toUserOutput(), *errorMessage); return Core::GeneratedFile(); } diff --git a/src/plugins/projectexplorer/taskhub.cpp b/src/plugins/projectexplorer/taskhub.cpp index 53b527eae19..841bfb5d4e9 100644 --- a/src/plugins/projectexplorer/taskhub.cpp +++ b/src/plugins/projectexplorer/taskhub.cpp @@ -30,9 +30,9 @@ static TextEditor::TextMarkCategory categoryForType(Task::TaskType type) { switch (type) { case Task::Error: - return {Tr::tr("Taskhub Error"), TASK_MARK_ERROR}; + return {::ProjectExplorer::Tr::tr("Taskhub Error"), TASK_MARK_ERROR}; case Task::Warning: - return {Tr::tr("Taskhub Warning"), TASK_MARK_WARNING}; + return {::ProjectExplorer::Tr::tr("Taskhub Warning"), TASK_MARK_WARNING}; default: return {}; }