| 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 | { |