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

Method children

src/backend/core/AbstractAspect.cpp:657–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657QVector<AbstractAspect*> AbstractAspect::children(AspectType type, ChildIndexFlags flags) const {
658 QVector<AbstractAspect*> result;
659 for (auto* child : children()) {
660 if (flags & ChildIndexFlag::IncludeHidden || !child->isHidden()) {
661 if (child->inherits(type))
662 result << child;
663
664 if (flags & ChildIndexFlag::Recursive)
665 result << child->children(type, flags);
666 }
667 }
668
669 return result;
670}
671
672const QVector<AbstractAspect*>& AbstractAspect::children() const {
673 Q_ASSERT(d);

Callers 15

copyMethod · 0.95
isTopLevelMethod · 0.45
setAxesColumnLabelsMethod · 0.45
loadDoubleFromProjectMethod · 0.45
loadTextFromProjectMethod · 0.45
TestLoadProjectMethod · 0.45
TestLoadProject2Method · 0.45
TestResizeWindowsMethod · 0.45

Calls 2

inheritsMethod · 0.80
isHiddenMethod · 0.45

Tested by

no test coverage detected