forked from qt-creator/qt-creator
ProjectExplorer: Let IOutputParser handle newlines
This makes IOutputParser structurally more similar to Utils::OutputFormatter, which makes it simpler to explore possibilities of somehow uniting these two related classes. Task-number: QTCREATORBUG-22665 Change-Id: Ibb12ab6c8c785d863b9a921102a929864d0a5251 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -383,11 +383,11 @@ void QbsBuildStep::handleProcessResult(
|
||||
emit addOutput(executable.toUserOutput() + ' ' + QtcProcess::joinArgs(arguments),
|
||||
OutputFormat::Stdout);
|
||||
for (const QString &line : stdErr) {
|
||||
m_parser->stdError(line);
|
||||
m_parser->handleStderr(line + '\n');
|
||||
emit addOutput(line, OutputFormat::Stderr);
|
||||
}
|
||||
for (const QString &line : stdOut) {
|
||||
m_parser->stdOutput(line);
|
||||
m_parser->handleStdout(line + '\n');
|
||||
emit addOutput(line, OutputFormat::Stdout);
|
||||
}
|
||||
m_parser->flush();
|
||||
|
||||
Reference in New Issue
Block a user