MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / groupForIndex

Method groupForIndex

src/plugins/binarytools/models/binarytoolsmodel.cpp:190–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190QString BinaryToolsModel::groupForIndex(const QModelIndex &index, bool *found) const
191{
192 if (index.isValid() && !index.parent().isValid() && index.column() == 0 && index.row() >= 0) {
193 const QList<QString> &keys = binaryTools.keys();
194 if (index.row() < keys.count()) {
195 if (found) *found = true;
196 return keys.at(index.row());
197 }
198 }
199
200 if (found) *found = false;
201 return QString();
202}
203
204QModelIndex BinaryToolsModel::addGroup()
205{

Callers

nothing calls this directly

Calls 8

columnMethod · 0.80
rowMethod · 0.80
atMethod · 0.80
QStringClass · 0.50
isValidMethod · 0.45
parentMethod · 0.45
keysMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected