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

Method isReadingSubList

YACReaderLibrary/db/reading_list_model.cpp:468–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468bool ReadingListModel::isReadingSubList(const QModelIndex &mi)
469{
470 if (!mi.isValid())
471 return false;
472 auto item = static_cast<ListItem *>(mi.internalPointer());
473 if (typeid(*item) == typeid(ReadingListItem)) {
474 auto readingListItem = static_cast<ReadingListItem *>(item);
475 if (readingListItem->parent == rootItem)
476 return false;
477 else
478 return true;
479 } else
480 return false;
481}
482
483QString ReadingListModel::name(const QModelIndex &mi)
484{

Callers 1

addNewReadingListMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected