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
|
#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:
|
|||||||
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;
|
||||||
|
Reference in New Issue
Block a user