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

Method populatePaletteCombo

Misc/SigDiggerHelpers.cpp:229–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void
230SigDiggerHelpers::populatePaletteCombo(QComboBox *cb)
231{
232 int ndx = 0;
233
234 cb->clear();
235
236 // Populate combo
237 for (auto p : this->palettes) {
238 cb->insertItem(
239 ndx,
240 QIcon(QPixmap::fromImage(p.getThumbnail())),
241 QString::fromStdString(p.getName()),
242 QVariant::fromValue(ndx));
243 ++ndx;
244 }
245}
246
247void
248SigDiggerHelpers::populateAntennaCombo(

Callers 6

TimeWindowMethod · 0.80
postLoadInitMethod · 0.80
applyConfigMethod · 0.80
initUiMethod · 0.80
WaveformTabMethod · 0.80
refreshPalettesMethod · 0.80

Calls 2

clearMethod · 0.45
getNameMethod · 0.45

Tested by 1

initUiMethod · 0.64