BuildOutputParser: Use Qt5-style connects

Change-Id: Ib0e2e77d4e0215d1d2d50a00981fd8d6269f544f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-07-01 16:13:01 +03:00
committed by Orgad Shaneh
parent 32ea9a644d
commit 7b71ac3821
2 changed files with 3 additions and 4 deletions

View File

@@ -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();

View File

@@ -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;