ProjectExplorer: Rename worker dependencies to "startDependencies"

There will be stopDependencies, too, which apply when stopping the
runcontrol.

Change-Id: Id72771d28cbb6b254572c9f93db93e0d054b890f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2017-08-08 14:09:50 +02:00
parent 376b1f32dc
commit 8b5582c424
12 changed files with 26 additions and 26 deletions

View File

@@ -537,7 +537,7 @@ public:
RunWorker *q;
RunWorkerState state = RunWorkerState::Initialized;
QPointer<RunControl> runControl;
QList<RunWorker *> dependencies;
QList<RunWorker *> startDependencies;
QString id;
QVariantMap data;
@@ -1455,7 +1455,7 @@ bool RunWorkerPrivate::canStart() const
{
if (state != RunWorkerState::Initialized)
return false;
for (RunWorker *worker : dependencies) {
for (RunWorker *worker : startDependencies) {
QTC_ASSERT(worker, return true);
if (worker->d->state != RunWorkerState::Done
&& worker->d->state != RunWorkerState::Running)
@@ -1618,9 +1618,9 @@ Core::Id RunWorker::runMode() const
return d->runControl->runMode();
}
void RunWorker::addDependency(RunWorker *dependency)
void RunWorker::addStartDependency(RunWorker *dependency)
{
d->dependencies.append(dependency);
d->startDependencies.append(dependency);
}
RunControl *RunWorker::runControl() const