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

Method index

src/model/DeviceModel.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156QModelIndex DeviceModel::index(int row, int column,
157 const QModelIndex &parent) const {
158 if (!hasIndex(row, column, parent))
159 return {};
160 Node *p = nodeFor(parent);
161 if (row < 0 || row >= p->children.size())
162 return {};
163 return createIndex(row, column, p->children[row]);
164}
165
166QModelIndex DeviceModel::parent(const QModelIndex &child) const {
167 if (!child.isValid())

Callers 3

saveExpandedStateMethod · 0.80
restoreExpandedStateMethod · 0.80
findDeviceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected