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

Method itemSelectionChange_

src/openms_gui/source/VISUAL/SpectraTreeTab.cpp:184–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

listToVecFunction · 0.85
hasChromIndicesMethod · 0.80

Tested by

no test coverage detected