ProjectExplorer: Simplify RunControl::appendMessage

Use a signal directly now, the users know the caller.

Change-Id: Ib2ff4dbe3047eddf2a060eef060b487a4c17e78c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-03-11 16:22:33 +01:00
parent 14dc38eea0
commit 582f72f433
4 changed files with 7 additions and 14 deletions

View File

@@ -595,9 +595,8 @@ void TestRunner::debugTests()
outputreader->setId(inferior.executable);
connect(outputreader, &TestOutputReader::newOutputAvailable,
TestResultsPane::instance(), &TestResultsPane::addOutput);
connect(runControl, &ProjectExplorer::RunControl::appendMessageRequested,
this, [outputreader]
(ProjectExplorer::RunControl *, const QString &msg, Utils::OutputFormat format) {
connect(runControl, &ProjectExplorer::RunControl::appendMessage,
this, [outputreader](const QString &msg, Utils::OutputFormat format) {
processOutput(outputreader, msg, format);
});