DesktopQmakeRunConfiguration: Use Qt5 connects

The future is now.

Change-Id: I68fa2fc75d8fe4437600a808949892e9002d950d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2014-09-12 13:31:50 +02:00
parent a29de8f7ad
commit 7dbb9b2678

View File

@@ -160,10 +160,11 @@ void DesktopQmakeRunConfiguration::ctor()
QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(target()->kit()); QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(target()->kit());
m_forcedGuiMode = (version && version->type() == QLatin1String(QtSupport::Constants::SIMULATORQT)); m_forcedGuiMode = (version && version->type() == QLatin1String(QtSupport::Constants::SIMULATORQT));
connect(target()->project(), SIGNAL(proFileUpdated(QmakeProjectManager::QmakeProFileNode*,bool,bool)), QmakeProject *project = static_cast<QmakeProject *>(target()->project());
this, SLOT(proFileUpdated(QmakeProjectManager::QmakeProFileNode*,bool,bool))); connect(project, &QmakeProject::proFileUpdated,
connect(target(), SIGNAL(kitChanged()), this, &DesktopQmakeRunConfiguration::proFileUpdated);
this, SLOT(kitChanged())); connect(target(), &Target::kitChanged,
this, &DesktopQmakeRunConfiguration::kitChanged);
} }
void DesktopQmakeRunConfiguration::kitChanged() void DesktopQmakeRunConfiguration::kitChanged()