MCPcopy Create free account
hub / github.com/KDAB/GammaRay / flags

Method flags

launcher/ui/processmodel.cpp:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206Qt::ItemFlags ProcessModel::flags(const QModelIndex &index) const
207{
208 const ProbeABI abi = index.data(ABIRole).value<ProbeABI>();
209 const ProbeABI bestABI = ProbeFinder::findBestMatchingABI(abi, m_availableABIs);
210
211 const Qt::ItemFlags f = QAbstractTableModel::flags(index);
212 if (!bestABI.isValid())
213 return f & ~(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
214 return f;
215}

Callers

nothing calls this directly

Calls 3

findBestMatchingABIFunction · 0.85
dataMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected