MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / populateSearchBox_

Method populateSearchBox_

src/openms_gui/source/VISUAL/DIATreeTab.cpp:317–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 }
316
317 void DIATreeTab::populateSearchBox_()
318 {
319 QStringList headers = dia_treewidget_->getHeaderNames(WidgetHeader::WITH_INVISIBLE);
320 int current_index = spectra_combo_box_->currentIndex(); // when repainting we want the index to stay the same
321 spectra_combo_box_->clear();
322 spectra_combo_box_->addItems(headers);
323 spectra_combo_box_->setCurrentIndex(current_index);
324 }
325
326 void DIATreeTab::clear()
327 {

Callers

nothing calls this directly

Calls 3

setCurrentIndexMethod · 0.80
getHeaderNamesMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected