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

Method deselectIndex

YACReaderLibrary/yacreader_comics_selection_helper.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void YACReaderComicsSelectionHelper::deselectIndex(int index)
33{
34 if (_selectionModel != nullptr && model != nullptr) {
35 _selectionModel->select(model->index(index, 0), QItemSelectionModel::Deselect | QItemSelectionModel::Rows);
36
37 emit selectionChanged();
38 }
39}
40
41bool YACReaderComicsSelectionHelper::isSelectedIndex(int index) const
42{

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80
indexMethod · 0.45

Tested by

no test coverage detected