ProjectExplorer: Tr::tr clean-up

Tr::tr a string that was missed, and some extra qualifications to help
lupdate.

Amends: c5f7f5ab0a

Change-Id: I65b98d20ed3c1f8781823c4ee6677052d1cf0fa3
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-01-16 14:24:27 +01:00
parent 5d9912b058
commit 8f2d48e8a3
2 changed files with 3 additions and 3 deletions

View File

@@ -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\":<br>%2")
*errorMessage = Tr::tr("When processing \"%1\":<br>%2")
.arg(file.source.toUserOutput(), *errorMessage);
return Core::GeneratedFile();
}

View File

@@ -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 {};
}