diff --git a/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp b/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp index 9c210a7335b8d543c318908a447ea3575d584b23..ed754db15caaf62967975f1daacd08dd5a20ef0b 100644 --- a/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp +++ b/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp @@ -160,10 +160,11 @@ void DesktopQmakeRunConfiguration::ctor() QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(target()->kit()); m_forcedGuiMode = (version && version->type() == QLatin1String(QtSupport::Constants::SIMULATORQT)); - connect(target()->project(), SIGNAL(proFileUpdated(QmakeProjectManager::QmakeProFileNode*,bool,bool)), - this, SLOT(proFileUpdated(QmakeProjectManager::QmakeProFileNode*,bool,bool))); - connect(target(), SIGNAL(kitChanged()), - this, SLOT(kitChanged())); + QmakeProject *project = static_cast(target()->project()); + connect(project, &QmakeProject::proFileUpdated, + this, &DesktopQmakeRunConfiguration::proFileUpdated); + connect(target(), &Target::kitChanged, + this, &DesktopQmakeRunConfiguration::kitChanged); } void DesktopQmakeRunConfiguration::kitChanged()