creates a protein subtree (with peptides etc, if available)
| 149 | |
| 150 | /// creates a protein subtree (with peptides etc, if available) |
| 151 | QTreeWidgetItem* createProt(const OSWProtein& prot, int prot_index) |
| 152 | { |
| 153 | QTreeWidgetItem* item_prot = new QTreeWidgetItem(); |
| 154 | item_prot->setData(Clmn::ENTITY, Qt::DisplayRole, "protein"); |
| 155 | item_prot->setData(Clmn::INDEX, Qt::DisplayRole, prot_index); |
| 156 | item_prot->setData(Clmn::INDEX, Qt::UserRole, OSWHierarchy::PROTEIN); // mark as protein, so we know how to interpret the display role |
| 157 | item_prot->setText(Clmn::FULL_NAME, prot.getAccession().c_str()); |
| 158 | |
| 159 | // if possible, fill it already |
| 160 | fillProt(prot, item_prot); |
| 161 | |
| 162 | return item_prot; |
| 163 | } |
| 164 | |
| 165 | |
| 166 | void DIATreeTab::spectrumSearchText_() |
no test coverage detected