Commit 7b71ac38 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

BuildOutputParser: Use Qt5-style connects

Change-Id: Ib0e2e77d4e0215d1d2d50a00981fd8d6269f544f
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 32ea9a64
......@@ -74,8 +74,8 @@ void CompilerOutputProcessor::start()
#endif
}
connect(&parser, SIGNAL(addTask(ProjectExplorer::Task)),
SLOT(handleTask(ProjectExplorer::Task)));
connect(&parser, &ProjectExplorer::IOutputParser::addTask,
this, &CompilerOutputProcessor::handleTask);
while (!m_source.atEnd())
parser.stdError(QString::fromLocal8Bit(m_source.readLine().trimmed()));
qApp->quit();
......
......@@ -47,11 +47,10 @@ public:
CompilerOutputProcessor(CompilerType compilerType, QIODevice &source);
~CompilerOutputProcessor();
private slots:
private:
void start();
void handleTask(const ProjectExplorer::Task &task);
private:
const CompilerType m_compilerType;
QIODevice &m_source;
QTextStream * const m_ostream;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment