QmlProject: Remove unnecessary code

The normal RunConfiguration already triggers this.

Change-Id: I33f8704e28768efc264a2e2e717284ba7615dc08
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2018-05-31 16:12:25 +02:00
parent 397de4ff30
commit bef6d49adc
2 changed files with 0 additions and 14 deletions

View File

@@ -76,10 +76,6 @@ QmlProject::~QmlProject()
void QmlProject::addedTarget(Target *target)
{
connect(target, &Target::addedRunConfiguration,
this, &QmlProject::addedRunConfiguration);
foreach (RunConfiguration *rc, target->runConfigurations())
addedRunConfiguration(rc);
updateDeploymentData(target);
}
@@ -101,15 +97,6 @@ void QmlProject::onKitChanged()
refresh(Configuration);
}
void QmlProject::addedRunConfiguration(RunConfiguration *rc)
{
// The enabled state of qml runconfigurations can only be decided after
// they have been added to a project
QmlProjectRunConfiguration *qmlrc = qobject_cast<QmlProjectRunConfiguration *>(rc);
if (qmlrc)
qmlrc->updateEnabledState();
}
Utils::FileName QmlProject::canonicalProjectDir() const
{
return m_canonicalProjectDir;