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

Method itemForIndex

kdevplatform/debugger/util/treemodel.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145TreeItem* TreeModel::itemForIndex(const QModelIndex& index) const
146{
147 Q_D(const TreeModel);
148
149 if (!index.isValid())
150 return d->root;
151 else
152 return static_cast<TreeItem*>(index.internalPointer());
153}
154
155QModelIndex TreeModel::indexForItem(TreeItem *item, int column) const
156{

Callers 1

slotLinkActivatedMethod · 0.45

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected