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

Method findText

custom_widgets/yacreader_library_list_widget.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 return librariesList.at(currentLibraryIndex)->name;
42}
43int YACReaderLibraryListWidget::findText(QString text)
44{
45 for (int i = 0; i < librariesList.count(); i++) {
46 if (librariesList.at(i)->name == text)
47 return i;
48 }
49 return -1;
50}
51void YACReaderLibraryListWidget::setCurrentIndex(int index)
52{
53 if (index >= 0 && index < librariesList.count()) {

Callers 2

populateCombosMethod · 0.80
openLastCreatedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected