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

Method aspectHiddenChanged

src/backend/core/AspectTreeModel.cpp:422–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void AspectTreeModel::aspectHiddenChanged(const AbstractAspect* aspect) {
423 for (auto* a = aspect->parentAspect(); a; a = a->parentAspect())
424 if (a->isHidden())
425 return;
426 if (aspect->isHidden())
427 aspectRemoved();
428 else
429 aspectAdded(aspect);
430}
431
432bool AspectTreeModel::setData(const QModelIndex& index, const QVariant& value, int role) {
433 if (!index.isValid() || role != Qt::EditRole)

Callers

nothing calls this directly

Calls 2

parentAspectMethod · 0.80
isHiddenMethod · 0.45

Tested by

no test coverage detected