MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / repaintCountryList

Method repaintCountryList

Settings/LocationConfigTab.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void
80LocationConfigTab::repaintCountryList(QString searchText)
81{
82 Suscan::Singleton *sus = Suscan::Singleton::get_instance();
83
84 this->ui->cityListWidget->clear();
85
86 for (auto i = sus->getFirstLocation(); i != sus->getLastLocation(); ++i) {
87 QString locName = i->getLocationName();
88 if (locName.contains(searchText, Qt::CaseInsensitive)) {
89 QListWidgetItem *item = new QListWidgetItem(locName);
90 this->ui->cityListWidget->addItem(item);
91 }
92 }
93}
94
95void
96LocationConfigTab::populateLocations(void)

Callers 1

onSearchTextChangedMethod · 0.95

Calls 4

getFirstLocationMethod · 0.80
getLastLocationMethod · 0.80
getLocationNameMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected