| 343 | */ |
| 344 | template<typename T> |
| 345 | void Project::updateDependencies(const QVector<const AbstractAspect*> changedAspects) { |
| 346 | if (!changedAspects.isEmpty()) { |
| 347 | // if a new aspect was addded, check whether the aspect names match the missing |
| 348 | // names in the other aspects and update the dependencies |
| 349 | const auto& children = this->children<T>(ChildIndexFlag::Recursive); |
| 350 | |
| 351 | for (const auto* changedAspect : changedAspects) { |
| 352 | const auto& changedAspectPath = changedAspect->path(); |
| 353 | for (auto* child : children) |
| 354 | child->handleAspectUpdated(changedAspectPath, changedAspect); |
| 355 | } |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | /*! |
| 360 | * \brief Project::descriptionChanged |
nothing calls this directly
no test coverage detected