| 473 | } |
| 474 | |
| 475 | QModelIndex ComicModel::index(int row, int column, const QModelIndex &parent) |
| 476 | const |
| 477 | { |
| 478 | if (!hasIndex(row, column, parent)) |
| 479 | return QModelIndex(); |
| 480 | |
| 481 | return createIndex(row, column, _data.at(row)); |
| 482 | } |
| 483 | |
| 484 | QModelIndex ComicModel::parent(const QModelIndex &index) const |
| 485 | { |
no test coverage detected