forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user