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