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