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

Method populateRemoteDeviceCombo

Settings/ProfileConfigTab.cpp:121–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void
122ProfileConfigTab::populateRemoteDeviceCombo(void)
123{
124 Suscan::Singleton *sus = Suscan::Singleton::get_instance();
125
126 this->ui->remoteDeviceCombo->clear();
127
128 for (
129 auto i = sus->getFirstNetworkProfile();
130 i != sus->getLastNetworkProfile();
131 ++i)
132 this->ui->remoteDeviceCombo->addItem(i->label().c_str());
133
134 if (this->ui->remoteDeviceCombo->currentIndex() != -1)
135 this->ui->remoteDeviceCombo->setCurrentIndex(0);
136}
137
138
139void

Callers 2

populateCombosMethod · 0.95

Calls 4

getLastNetworkProfileMethod · 0.80
labelMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected