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

Method isEditable

YACReaderLibrary/db/reading_list_model.cpp:452–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452bool ReadingListModel::isEditable(const QModelIndex &mi)
453{
454 if (!mi.isValid())
455 return false;
456 auto item = static_cast<ListItem *>(mi.internalPointer());
457 return typeid(*item) != typeid(SpecialListItem);
458}
459
460bool ReadingListModel::isReadingList(const QModelIndex &mi)
461{

Callers 2

showRenameCurrentListMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected