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

Method selectAll

YACReaderLibrary/yacreader_comics_selection_helper.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void YACReaderComicsSelectionHelper::selectAll()
77{
78 QModelIndex top = model->index(0, 0);
79 QModelIndex bottom = model->index(model->rowCount() - 1, 0);
80 QItemSelection selection(top, bottom);
81 _selectionModel->select(selection, QItemSelectionModel::Select | QItemSelectionModel::Rows);
82
83 emit selectionChanged();
84}
85
86QModelIndexList YACReaderComicsSelectionHelper::selectedRows(int column) const
87{

Callers

nothing calls this directly

Calls 3

selectMethod · 0.80
indexMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected