PerfProfiler: Convert to using Tr::tr

Change-Id: Ied3f0a499a1b5c6da752667a44525ecce66febac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2022-08-30 17:28:02 +02:00
parent a522215840
commit 88489fa956
22 changed files with 228 additions and 453 deletions

View File

@@ -108,10 +108,10 @@ public:
// The terminate() below will frequently lead to QProcess::Crashed. We're not interested
// in that. FailedToStart is the only actual failure.
if (m_process->error() == QProcess::FailedToStart) {
const QString msg = tr("Perf Process Failed to Start");
const QString msg = Tr::tr("Perf Process Failed to Start");
QMessageBox::warning(Core::ICore::dialogParent(), msg,
tr("Make sure that you are running a recent Linux kernel and "
"that the \"perf\" utility is available."));
Tr::tr("Make sure that you are running a recent Linux kernel "
"and that the \"perf\" utility is available."));
reportFailure(msg);
return;
}
@@ -192,7 +192,7 @@ void PerfProfilerRunner::start()
});
connect(recorder, &QtcProcess::readyReadStandardOutput, this, [this, reader, recorder] {
if (!reader->feedParser(recorder->readAllStandardOutput()))
reportFailure(tr("Failed to transfer Perf data to perfparser."));
reportFailure(Tr::tr("Failed to transfer Perf data to perfparser."));
});
}