aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qbsprojectmanager
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-11-15 15:44:45 +0100
committerhjk <hjk@qt.io>2019-11-21 13:08:06 +0000
commitc2127c9ec42a2a8ced7aff3547d844e6b421d718 (patch)
treeccd97ebb9ce09bb8215c006de332d350031bf426 /src/plugins/qbsprojectmanager
parent738bbf1a873fbb5c5debbb871a58631e99ba20e8 (diff)
ProjectExplorer: Introduce and use a Target::buildSystemUpdated signal
Change-Id: I497d46866146600a1ed9162bd720c574ee4d4769 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qbsprojectmanager')
-rw-r--r--src/plugins/qbsprojectmanager/qbsproject.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp
index a0d888bbccc..81bf08f83a9 100644
--- a/src/plugins/qbsprojectmanager/qbsproject.cpp
+++ b/src/plugins/qbsprojectmanager/qbsproject.cpp
@@ -620,6 +620,7 @@ void QbsBuildSystem::updateAfterParse()
updateQmlJsCodeModel();
emit project()->fileListChanged();
m_envCache.clear();
+ emitBuildSystemUpdated();
}
void QbsBuildSystem::delayedUpdateAfterParse()
@@ -688,6 +689,11 @@ void QbsBuildSystem::handleQbsParsingDone(bool success)
updateCppCodeModel();
m_guard.markAsSuccess();
m_guard = {};
+
+ // This one used to change the executable path of a Qbs desktop run configuration
+ // in case the "install" check box in the build step is unchecked and then build
+ // is triggered (which is otherwise a no-op).
+ emitBuildSystemUpdated();
}
void QbsBuildSystem::rebuildProjectTree()
@@ -800,6 +806,7 @@ void QbsBuildSystem::updateAfterBuild()
DeploymentData deploymentDataTmp = deploymentData();
deploymentDataTmp.setLocalInstallRoot(installRoot());
setDeploymentData(deploymentDataTmp);
+ emitBuildSystemUpdated();
return;
}
qCDebug(qbsPmLog) << "Updating data after build";
@@ -1274,6 +1281,9 @@ void QbsBuildSystem::updateBuildTargetData()
OpTimer optimer("updateBuildTargetData");
updateApplicationTargets();
updateDeploymentInfo();
+
+ // This one used after a normal build.
+ emitBuildSystemUpdated();
}
} // namespace Internal