| 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 |