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

Method setCurrentIndex

custom_widgets/yacreader_library_list_widget.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 return -1;
50}
51void YACReaderLibraryListWidget::setCurrentIndex(int index)
52{
53 if (index >= 0 && index < librariesList.count()) {
54 librariesList.at(index)->select();
55 currentLibraryIndex = index;
56 deselectAllBut(index);
57 emit currentIndexChanged(librariesList.at(currentLibraryIndex)->name);
58 }
59}
60
61int YACReaderLibraryListWidget::currentIndex()
62{

Callers

nothing calls this directly

Calls 1

selectMethod · 0.80

Tested by

no test coverage detected