| 458 | } |
| 459 | |
| 460 | bool ReadingListModel::isReadingList(const QModelIndex &mi) |
| 461 | { |
| 462 | if (!mi.isValid()) |
| 463 | return false; |
| 464 | auto item = static_cast<ListItem *>(mi.internalPointer()); |
| 465 | return typeid(*item) == typeid(ReadingListItem); |
| 466 | } |
| 467 | |
| 468 | bool ReadingListModel::isReadingSubList(const QModelIndex &mi) |
| 469 | { |
no test coverage detected