MCPcopy Create free account
hub / github.com/KDE/labplot / updateDependencies

Method updateDependencies

src/backend/core/Project.cpp:345–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 */
344template<typename T>
345void 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

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.45
pathMethod · 0.45
handleAspectUpdatedMethod · 0.45

Tested by

no test coverage detected