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

Function createProt

src/openms_gui/source/VISUAL/DIATreeTab.cpp:151–163  ·  view source on GitHub ↗

creates a protein subtree (with peptides etc, if available)

Source from the content-addressed store, hash-verified

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_()

Callers 1

updateEntriesMethod · 0.85

Calls 4

fillProtFunction · 0.85
setTextMethod · 0.80
getAccessionMethod · 0.80
setDataMethod · 0.45

Tested by

no test coverage detected