forked from qt-creator/qt-creator
CMake: Use Qt5-style connects
Change-Id: I5ec451b55237fcceca86f0134ae081b435dab5c5 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user