forked from qt-creator/qt-creator
QmakeProject: Remove proFilesEvaluated() signal
It's not really different from Project::parsingFinished. Adapt users. Change-Id: I47d23469df2ec52c5d823508772a7e8b8ad429ce Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -64,13 +64,10 @@ AndroidQmakeBuildConfiguration::AndroidQmakeBuildConfiguration(Target *target)
|
||||
{
|
||||
updateCacheAndEmitEnvironmentChanged();
|
||||
|
||||
auto updateGrade = [this] { AndroidManager::updateGradleProperties(BuildConfiguration::target()); };
|
||||
auto updateGradle = [this] { AndroidManager::updateGradleProperties(BuildConfiguration::target()); };
|
||||
|
||||
auto project = qobject_cast<QmakeProject *>(target->project());
|
||||
if (project)
|
||||
connect(project, &QmakeProject::proFilesEvaluated, this, updateGrade);
|
||||
else
|
||||
connect(this, &AndroidQmakeBuildConfiguration::enabledChanged, this, updateGrade);
|
||||
connect(target->project(), &Project::parsingFinished, this, updateGradle);
|
||||
connect(this, &AndroidQmakeBuildConfiguration::enabledChanged, this, updateGradle);
|
||||
}
|
||||
|
||||
void AndroidQmakeBuildConfiguration::initialize(const BuildInfo *info)
|
||||
|
||||
@@ -82,11 +82,8 @@ DesktopQmakeRunConfiguration::DesktopQmakeRunConfiguration(Target *target)
|
||||
addExtraAspect(new TerminalAspect(this, "Qt4ProjectManager.Qt4RunConfiguration.UseTerminal"));
|
||||
addExtraAspect(new WorkingDirectoryAspect(this, "Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"));
|
||||
|
||||
QmakeProject *project = qmakeProject();
|
||||
connect(project, &Project::parsingFinished,
|
||||
connect(target->project(), &Project::parsingFinished,
|
||||
this, &DesktopQmakeRunConfiguration::updateTargetInformation);
|
||||
connect(project, &QmakeProject::proFilesEvaluated,
|
||||
this, &DesktopQmakeRunConfiguration::proFileEvaluated);
|
||||
}
|
||||
|
||||
QString DesktopQmakeRunConfiguration::extraId() const
|
||||
@@ -94,13 +91,6 @@ QString DesktopQmakeRunConfiguration::extraId() const
|
||||
return m_proFilePath.toString();
|
||||
}
|
||||
|
||||
void DesktopQmakeRunConfiguration::proFileEvaluated()
|
||||
{
|
||||
// We depend on all .pro files for the LD_LIBRARY_PATH so we emit a signal for all .pro files
|
||||
// This can be optimized by checking whether LD_LIBRARY_PATH changed
|
||||
return extraAspect<LocalEnvironmentAspect>()->buildEnvironmentHasChanged();
|
||||
}
|
||||
|
||||
void DesktopQmakeRunConfiguration::updateTargetInformation()
|
||||
{
|
||||
setDefaultDisplayName(defaultDisplayName());
|
||||
|
||||
@@ -90,7 +90,6 @@ protected:
|
||||
QString extraId() const override;
|
||||
|
||||
private:
|
||||
void proFileEvaluated();
|
||||
void updateTargetInformation();
|
||||
|
||||
QPair<QString, QString> extractWorkingDirAndExecutable(const QmakeProFile *proFile) const;
|
||||
|
||||
@@ -545,7 +545,6 @@ void QmakeProject::decrementPendingEvaluateFutures()
|
||||
if (activeTarget())
|
||||
activeTarget()->updateDefaultDeployConfigurations();
|
||||
updateRunConfigurations();
|
||||
emit proFilesEvaluated();
|
||||
emitParsingFinished(true); // Qmake always returns (some) data, even when it failed:-)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +129,6 @@ public:
|
||||
signals:
|
||||
void proFileUpdated(QmakeProjectManager::QmakeProFile *pro, bool, bool);
|
||||
void buildDirectoryInitialized();
|
||||
void proFilesEvaluated();
|
||||
|
||||
public:
|
||||
void scheduleAsyncUpdate(QmakeProFile::AsyncUpdateDelay delay = QmakeProFile::ParseLater);
|
||||
|
||||
@@ -109,7 +109,7 @@ QmakeProjectConfigWidget::QmakeProjectConfigWidget(QmakeBuildConfiguration *bc)
|
||||
});
|
||||
connect(project, &QmakeProject::buildDirectoryInitialized,
|
||||
this, &QmakeProjectConfigWidget::updateProblemLabel);
|
||||
connect(project, &QmakeProject::proFilesEvaluated,
|
||||
connect(project, &Project::parsingFinished,
|
||||
this, &QmakeProjectConfigWidget::updateProblemLabel);
|
||||
|
||||
connect(bc->target(), &Target::kitChanged, this, &QmakeProjectConfigWidget::updateProblemLabel);
|
||||
|
||||
Reference in New Issue
Block a user