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

Method rowCount

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

Source from the content-addressed store, hash-verified

101}
102
103int BinaryToolsModel::rowCount(const QModelIndex &parent) const
104{
105 if (!parent.isValid())
106 return binaryTools.size();
107
108 if (toolForIndex(parent))
109 return 0;
110
111 bool found = false;
112 QString group = groupForIndex(parent, &found);
113 if (found)
114 return binaryTools.value(group).count();
115
116 return 0;
117}
118
119Qt::ItemFlags BinaryToolsModel::flags(const QModelIndex &index) const
120{

Callers

nothing calls this directly

Calls 4

isValidMethod · 0.45
sizeMethod · 0.45
countMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected