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

Method data

src/model/DeviceModel.cpp:186–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186QVariant DeviceModel::data(const QModelIndex &index, int role) const {
187 if (!index.isValid())
188 return {};
189 Node *n = nodeFor(index);
190 if (role == Qt::DisplayRole)
191 return n->label;
192 if (role == Qt::DecorationRole)
193 return resolveIcon(n->iconName);
194 return {};
195}
196
197QVariant DeviceModel::headerData(int, Qt::Orientation, int) const {
198 return {};

Callers 2

saveExpandedStateMethod · 0.80
restoreExpandedStateMethod · 0.80

Calls 1

resolveIconFunction · 0.85

Tested by

no test coverage detected