MCPcopy Create free account
hub / github.com/KDE/kdevelop / recursiveRowCount

Function recursiveRowCount

plugins/quickopen/documentationquickopenprovider.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53namespace {
54uint recursiveRowCount(const QAbstractItemModel* m, const QModelIndex& idx)
55{
56 uint rows = m->rowCount(idx);
57 uint ret = rows;
58
59 for (uint i = 0; i < rows; i++) {
60 ret += recursiveRowCount(m, m->index(i, 0, idx));
61 }
62
63 return ret;
64}
65
66void matchingIndexes(const QAbstractItemModel* m, const QString& match, const QModelIndex& idx, QList<QModelIndex>& ret, int& preferred)
67{

Callers 1

unfilteredItemCountMethod · 0.85

Calls 2

rowCountMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected