| 74 | |
| 75 | |
| 76 | QModelIndex GenericEntryModel::index(int row, int col, const QModelIndex& parent) const |
| 77 | { |
| 78 | if (parent.isValid()) |
| 79 | return QModelIndex(); |
| 80 | if (row >= (int)m_entries.size()) |
| 81 | return QModelIndex(); |
| 82 | if (col >= ColumnCount) |
| 83 | return QModelIndex(); |
| 84 | return createIndex(row, col); |
| 85 | } |
| 86 | |
| 87 | |
| 88 | QModelIndex GenericEntryModel::parent(const QModelIndex&) const |
no test coverage detected