MCPcopy Create free account
hub / github.com/YACReader/yacreader / isReadingList

Method isReadingList

YACReaderLibrary/db/reading_list_model.cpp:460–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460bool 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
468bool ReadingListModel::isReadingSubList(const QModelIndex &mi)
469{

Callers 1

addNewReadingListMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected