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

Method rowCount

src/modinfodialogtextfiles.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 QModelIndex parent(const QModelIndex&) const override { return {}; }
22
23 int rowCount(const QModelIndex& index = {}) const override
24 {
25 // no child nodes
26 if (index.isValid())
27 return 0;
28
29 return static_cast<int>(m_files.size());
30 }
31
32 int columnCount(const QModelIndex& = {}) const override { return 1; }
33

Callers 1

updateMethod · 0.45

Calls 2

isValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected