forked from qt-creator/qt-creator
BuildOutputParser: Use Qt5-style connects
Change-Id: Ib0e2e77d4e0215d1d2d50a00981fd8d6269f544f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
32ea9a644d
commit
7b71ac3821
@@ -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;
|
||||
|
Reference in New Issue
Block a user