CMake: Use Qt5-style connects

Change-Id: I5ec451b55237fcceca86f0134ae081b435dab5c5
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-01-08 14:29:36 +01:00
parent 1d6c960f05
commit 8146402e05
4 changed files with 25 additions and 27 deletions

View File

@@ -78,7 +78,8 @@ CMakeTool::~CMakeTool()
void CMakeTool::cancel()
{
if (m_process) {
disconnect(m_process, SIGNAL(finished(int)));
disconnect(m_process, static_cast<void (QProcess::*)(int)>(&QProcess::finished),
this, &CMakeTool::finished);
if (m_process->state() != QProcess::NotRunning)
m_process->kill();