From 7dbb9b267865bdaeb9cdd07b4d554f31dfd88305 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Fri, 12 Sep 2014 13:31:50 +0200 Subject: [PATCH] DesktopQmakeRunConfiguration: Use Qt5 connects The future is now. Change-Id: I68fa2fc75d8fe4437600a808949892e9002d950d Reviewed-by: Tobias Hunger --- .../qmakeprojectmanager/desktopqmakerunconfiguration.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp b/src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp index 9c210a7335..ed754db15c 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() -- GitLab