forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user