| 160 | } |
| 161 | |
| 162 | int PacketItemModel::rowCount(const QModelIndex &parent) const |
| 163 | { |
| 164 | if (parent.column() > 0) |
| 165 | return 0; |
| 166 | |
| 167 | if (!parent.isValid()) |
| 168 | return this->nrShowChildItems; |
| 169 | auto p = static_cast<TreeItem *>(parent.internalPointer()); |
| 170 | return (p == nullptr) ? 0 : int(p->getNrChildItems()); |
| 171 | } |
| 172 | |
| 173 | size_t PacketItemModel::getNumberFirstLevelChildren() const |
| 174 | { |
no test coverage detected