MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / flatIndex

Function flatIndex

src/modelutils.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8QModelIndexList flatIndex(const QAbstractItemModel* model, int column,
9 const QModelIndex& parent)
10{
11 QModelIndexList index;
12 for (std::size_t i = 0; i < model->rowCount(parent); ++i) {
13 index.append(model->index(i, column, parent));
14 index.append(flatIndex(model, column, index.back()));
15 }
16 return index;
17}
18
19static QModelIndexList visibleIndexImpl(QTreeView* view, int column,
20 const QModelIndex& parent)

Callers 5

saveTreeCheckStateMethod · 0.85
restoreTreeCheckStateMethod · 0.85
saveTreeExpandStateMethod · 0.85

Calls 3

backMethod · 0.80
rowCountMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected