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

Method IndexExtrator

src/openms_gui/source/VISUAL/SpectraTreeTab.cpp:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 struct IndexExtrator
70 {
71 explicit IndexExtrator(const QTreeWidgetItem* item)
72 : spectrum_index(item->data(ClmnPeak::SPEC_INDEX, Qt::DisplayRole).toInt()),
73 res(item->data(ClmnChrom::TYPE, Qt::UserRole).toList()) // this works, even if the QVariant is invalid (then the list is empty)
74 {
75 }
76
77 bool hasChromIndices() const
78 {

Callers

nothing calls this directly

Calls 1

toIntMethod · 0.80

Tested by

no test coverage detected