| 182 | } |
| 183 | |
| 184 | void SpectraTreeTab::itemSelectionChange_(QTreeWidgetItem* current, QTreeWidgetItem* /*previous*/) |
| 185 | { |
| 186 | if (current == nullptr) |
| 187 | { |
| 188 | return; |
| 189 | } |
| 190 | |
| 191 | IndexExtrator ie(current); |
| 192 | if (ie.hasChromIndices()) |
| 193 | { // open several chromatograms at once |
| 194 | emit chromsSelected(listToVec(ie.res)); |
| 195 | } |
| 196 | else |
| 197 | { |
| 198 | emit spectrumSelected(ie.spectrum_index); |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | void SpectraTreeTab::searchAndShow_() |
| 203 | { |
nothing calls this directly
no test coverage detected