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

Method populateSearchBox_

src/openms_gui/source/VISUAL/SpectraTreeTab.cpp:595–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593 }
594
595 void SpectraTreeTab::populateSearchBox_()
596 {
597 QStringList headers = spectra_treewidget_->getHeaderNames(WidgetHeader::WITH_INVISIBLE);
598 int current_index = spectra_combo_box_->currentIndex(); // when repainting we want the index to stay the same
599 spectra_combo_box_->clear();
600 spectra_combo_box_->addItems(headers);
601 spectra_combo_box_->setCurrentIndex(current_index);
602 }
603
604 void SpectraTreeTab::clear()
605 {

Callers

nothing calls this directly

Calls 3

setCurrentIndexMethod · 0.80
getHeaderNamesMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected