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() ...@@ -74,8 +74,8 @@ void CompilerOutputProcessor::start()
#endif #endif
} }
connect(&parser, SIGNAL(addTask(ProjectExplorer::Task)), connect(&parser, &ProjectExplorer::IOutputParser::addTask,
SLOT(handleTask(ProjectExplorer::Task))); this, &CompilerOutputProcessor::handleTask);
while (!m_source.atEnd()) while (!m_source.atEnd())
parser.stdError(QString::fromLocal8Bit(m_source.readLine().trimmed())); parser.stdError(QString::fromLocal8Bit(m_source.readLine().trimmed()));
qApp->quit(); qApp->quit();
......
...@@ -47,11 +47,10 @@ public: ...@@ -47,11 +47,10 @@ public:
CompilerOutputProcessor(CompilerType compilerType, QIODevice &source); CompilerOutputProcessor(CompilerType compilerType, QIODevice &source);
~CompilerOutputProcessor(); ~CompilerOutputProcessor();
private slots: private:
void start(); void start();
void handleTask(const ProjectExplorer::Task &task); void handleTask(const ProjectExplorer::Task &task);
private:
const CompilerType m_compilerType; const CompilerType m_compilerType;
QIODevice &m_source; QIODevice &m_source;
QTextStream * const m_ostream; 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