MCPcopy Create free account
hub / github.com/KDE/kdevelop / parent

Method parent

kdevplatform/debugger/framestack/framestackmodel.cpp:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262QModelIndex FrameStackModel::parent(const QModelIndex& child) const
263{
264 if (!child.internalId()) {
265 return QModelIndex();
266 } else {
267 return index(child.internalId()-1, 0);
268 }
269}
270
271QModelIndex FrameStackModel::index(int row, int column, const QModelIndex& parent) const
272{

Callers

nothing calls this directly

Calls 2

QModelIndexClass · 0.70
indexFunction · 0.50

Tested by

no test coverage detected