| 186 | |
| 187 | |
| 188 | OSWIndexTrace DIATreeTab::prepareSignal_(QTreeWidgetItem* item) |
| 189 | { |
| 190 | OSWIndexTrace tr; |
| 191 | if (item == nullptr || current_data_ == nullptr) |
| 192 | { |
| 193 | return tr; |
| 194 | } |
| 195 | |
| 196 | tr = getTrace(item); |
| 197 | switch (tr.lowest) |
| 198 | { |
| 199 | case OSWHierarchy::Level::PROTEIN: |
| 200 | if (item->childCount() == 0) |
| 201 | { // no peptides... load them |
| 202 | OSWFile f(current_data_->getSqlSourceFile()); |
| 203 | f.readProtein(*current_data_, tr.idx_prot); |
| 204 | fillProt(current_data_->getProteins()[tr.idx_prot], item); |
| 205 | } |
| 206 | // do nothing else -- showing all transitions for a protein is overwhelming... |
| 207 | break; |
| 208 | case OSWHierarchy::Level::PEPTIDE: |
| 209 | case OSWHierarchy::Level::FEATURE: |
| 210 | case OSWHierarchy::Level::TRANSITION: |
| 211 | break; |
| 212 | default: |
| 213 | throw Exception::NotImplemented(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION); |
| 214 | } |
| 215 | |
| 216 | return tr; |
| 217 | } |
| 218 | |
| 219 | void DIATreeTab::rowSelectionChange_(QTreeWidgetItem* current, QTreeWidgetItem* /*previous*/) |
| 220 | { |
nothing calls this directly
no test coverage detected