MCPcopy Create free account
hub / github.com/IENT/YUView / rowCount

Method rowCount

YUViewLib/src/parser/common/PacketItemModel.cpp:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162int 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
173size_t PacketItemModel::getNumberFirstLevelChildren() const
174{

Callers 8

clearMethod · 0.80
getColorMapMethod · 0.80
getOtherColorMethod · 0.80
doneMethod · 0.80
clearMethod · 0.80

Calls 2

getNrChildItemsMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected