| 212 | } |
| 213 | |
| 214 | void SpectraTreeTab::itemDoubleClicked_(QTreeWidgetItem* current) |
| 215 | { |
| 216 | if (current == nullptr) |
| 217 | { |
| 218 | return; |
| 219 | } |
| 220 | IndexExtrator ie(current); |
| 221 | if (!ie.hasChromIndices()) |
| 222 | { |
| 223 | emit spectrumDoubleClicked(ie.spectrum_index); |
| 224 | } |
| 225 | else |
| 226 | { // open several chromatograms at once |
| 227 | emit chromsDoubleClicked(listToVec(ie.res)); |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | void SpectraTreeTab::spectrumContextMenu_(const QPoint& pos) |
| 232 | { |
nothing calls this directly
no test coverage detected