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

Method loadListInfo

YACReaderLibrary/yacreader_navigation_controller.cpp:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void YACReaderNavigationController::loadListInfo(const QModelIndex &modelIndex)
83{
84 switch (modelIndex.data(ReadingListModel::TypeListsRole).toInt()) {
85 case ReadingListModel::SpecialList:
86 loadSpecialListInfo(modelIndex);
87 break;
88
89 case ReadingListModel::Label:
90 loadLabelInfo(modelIndex);
91 break;
92
93 case ReadingListModel::ReadingList:
94 loadReadingListInfo(modelIndex);
95 break;
96 }
97
98 // if a list is selected, foldersView selection must be cleared
99 libraryWindow->foldersView->clearSelection();
100}
101
102void YACReaderNavigationController::loadSpecialListInfo(const QModelIndex &modelIndex)
103{

Callers 1

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected