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

Method selectionModel

YACReaderLibrary/yacreader_comics_selection_helper.cpp:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114QItemSelectionModel *YACReaderComicsSelectionHelper::selectionModel()
115{
116 QModelIndexList indexes = _selectionModel->selectedRows();
117 if (indexes.length() == 0)
118 this->selectIndex(0);
119
120 return _selectionModel;
121}

Callers

nothing calls this directly

Calls 2

selectIndexMethod · 0.95
selectedRowsMethod · 0.80

Tested by

no test coverage detected