MCPcopy Create free account
hub / github.com/actuallyaridan/linux-devmgmt / nodeFor

Method nodeFor

src/model/DeviceModel.cpp:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150DeviceModel::Node *DeviceModel::nodeFor(const QModelIndex &index) const {
151 if (!index.isValid())
152 return m_root;
153 return static_cast<Node *>(index.internalPointer());
154}
155
156QModelIndex DeviceModel::index(int row, int column,
157 const QModelIndex &parent) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected