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

Method setCurrentIndex

YACReaderLibrary/grid_comics_view.cpp:242–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void GridComicsView::setCurrentIndex(const QModelIndex &index)
243{
244 selectionHelper->clear();
245 selectionHelper->selectIndex(index.row());
246
247 if (settings->value(USE_SELECTED_COMIC_COVER_AS_BACKGROUND_IMAGE_IN_GRID_VIEW, false).toBool())
248 updateBackgroundConfig();
249
250 if (showInfoAction->isChecked())
251 updateInfoForIndex(index.row());
252}
253
254void GridComicsView::setCurrentIndex(int index)
255{

Callers

nothing calls this directly

Calls 4

clearMethod · 0.45
selectIndexMethod · 0.45
rowMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected