Merge AnalyzerRunControl::logMessage and RunControl::appendMessage

The tools' ability to hook into processing of the output is
retained by making the function virtual.

Also remove the unusual overload of the RunControl::appendMessage
slot and the signal of the same name by renaming the signal.

Change-Id: If3c3cc2dd9c933169dc30b16e3165c9b3cf1440e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-05-13 11:27:51 +02:00
parent 6512227302
commit 67f9a26208
11 changed files with 18 additions and 21 deletions

View File

@@ -113,9 +113,9 @@ void IosAnalyzeSupport::handleRemoteProcessFinished(bool cleanEnd)
{
if (m_runControl) {
if (!cleanEnd)
m_runControl->logApplicationMessage(tr("Run ended with error."), Utils::ErrorMessageFormat);
m_runControl->appendMessage(tr("Run ended with error."), Utils::ErrorMessageFormat);
else
m_runControl->logApplicationMessage(tr("Run ended."), Utils::NormalMessageFormat);
m_runControl->appendMessage(tr("Run ended."), Utils::NormalMessageFormat);
m_runControl->notifyRemoteFinished();
}
}
@@ -123,7 +123,7 @@ void IosAnalyzeSupport::handleRemoteProcessFinished(bool cleanEnd)
void IosAnalyzeSupport::handleRemoteOutput(const QString &output)
{
if (m_runControl) {
m_runControl->logApplicationMessage(output, Utils::StdOutFormat);
m_runControl->appendMessage(output, Utils::StdOutFormat);
m_outputParser.processOutput(output);
}
}
@@ -131,7 +131,7 @@ void IosAnalyzeSupport::handleRemoteOutput(const QString &output)
void IosAnalyzeSupport::handleRemoteErrorOutput(const QString &output)
{
if (m_runControl)
m_runControl->logApplicationMessage(output, Utils::StdErrFormat);
m_runControl->appendMessage(output, Utils::StdErrFormat);
}
} // namespace Internal