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

Method selectIndex

YACReaderLibrary/yacreader_comics_selection_helper.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void YACReaderComicsSelectionHelper::selectIndex(int index)
24{
25 if (_selectionModel != nullptr && model != nullptr) {
26 _selectionModel->select(model->index(index, 0), QItemSelectionModel::Select | QItemSelectionModel::Rows);
27
28 emit selectionChanged();
29 }
30}
31
32void YACReaderComicsSelectionHelper::deselectIndex(int index)
33{

Callers 2

currentIndexMethod · 0.95
selectionModelMethod · 0.95

Calls 2

selectMethod · 0.80
indexMethod · 0.45

Tested by

no test coverage detected