| 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 | { |
nothing calls this directly
no test coverage detected