forked from qt-creator/qt-creator
Valgrind: Consolidate message production and consumption
Change-Id: I779f97a658b55f3c79111df1946b8d72863ce513 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -61,8 +61,8 @@ ValgrindToolRunner::ValgrindToolRunner(RunControl *runControl)
|
||||
|
||||
m_settings.fromMap(runControl->settingsData(ANALYZER_VALGRIND_SETTINGS));
|
||||
|
||||
connect(&m_runner, &ValgrindRunner::processOutputReceived,
|
||||
this, &ValgrindToolRunner::receiveProcessOutput);
|
||||
connect(&m_runner, &ValgrindRunner::appendMessage,
|
||||
this, &ValgrindToolRunner::appendMessage);
|
||||
connect(&m_runner, &ValgrindRunner::valgrindExecuted,
|
||||
this, [this](const QString &commandLine) {
|
||||
appendMessage(commandLine, NormalMessageFormat);
|
||||
@@ -162,11 +162,6 @@ void ValgrindToolRunner::runnerFinished()
|
||||
reportStopped();
|
||||
}
|
||||
|
||||
void ValgrindToolRunner::receiveProcessOutput(const QString &output, OutputFormat format)
|
||||
{
|
||||
appendMessage(output, format);
|
||||
}
|
||||
|
||||
void ValgrindToolRunner::receiveProcessError(const QString &message, QProcess::ProcessError error)
|
||||
{
|
||||
if (error == QProcess::FailedToStart) {
|
||||
|
||||
Reference in New Issue
Block a user