| 142 | } |
| 143 | |
| 144 | int AspectTreeModel::rowCount(const QModelIndex& parent) const { |
| 145 | if (!parent.isValid()) |
| 146 | return 1; |
| 147 | |
| 148 | auto* parent_aspect = static_cast<AbstractAspect*>(parent.internalPointer()); |
| 149 | return parent_aspect->childCount<AbstractAspect>(); |
| 150 | } |
| 151 | |
| 152 | int AspectTreeModel::columnCount(const QModelIndex& /*parent*/) const { |
| 153 | return 4; |
no test coverage detected