| 655 | } |
| 656 | |
| 657 | QVector<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 | |
| 672 | const QVector<AbstractAspect*>& AbstractAspect::children() const { |
| 673 | Q_ASSERT(d); |
no test coverage detected