QtSupport: Add QtTestParser to the list of output formatters

... when creating a run control for a Qt project. Now tasks will appear
in the issues pane for QtTest application output in the app output pane.

Task-number: QTCREATORBUG-22665
Change-Id: I2674f3d4f9aabc0a4db4178dcd5495b822f14022
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-04-22 10:46:09 +02:00
parent 9f92acf223
commit d3be54bcd1
4 changed files with 14 additions and 14 deletions

View File

@@ -1604,15 +1604,12 @@ OutputFormatterFactory::~OutputFormatterFactory()
QList<OutputLineParser *> OutputFormatterFactory::createFormatters(Target *target)
{
QList<OutputLineParser *> formatters;
for (auto factory : qAsConst(g_outputFormatterFactories)) {
if (auto formatter = factory->m_creator(target))
formatters << formatter;
}
for (auto factory : qAsConst(g_outputFormatterFactories))
formatters << factory->m_creator(target);
return formatters;
}
void OutputFormatterFactory::setFormatterCreator
(const std::function<OutputLineParser *(Target *)> &creator)
void OutputFormatterFactory::setFormatterCreator(const FormatterCreator &creator)
{
m_creator = creator;
}