MCPcopy Create free account
hub / github.com/Vector35/debugger / parent

Method parent

ui/threadframes.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253
254QModelIndex ThreadFrameModel::parent(const QModelIndex& index) const
255{
256 if (!index.isValid())
257 return QModelIndex();
258
259 FrameItem* childItem = static_cast<FrameItem*>(index.internalPointer());
260 FrameItem* parentItem = childItem->parentItem();
261
262 if (parentItem == rootItem)
263 return QModelIndex();
264
265 return createIndex(parentItem->row(), 0, parentItem);
266}
267
268
269int ThreadFrameModel::rowCount(const QModelIndex& parent) const

Callers

nothing calls this directly

Calls 2

parentItemMethod · 0.80
rowMethod · 0.80

Tested by

no test coverage detected