MCPcopy Create free account
hub / github.com/MITK/MITK / SetNode

Method SetNode

Modules/QtWidgets/src/QmitkDataStorageComboBox.cpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void QmitkDataStorageComboBox::SetNode(int index, const mitk::DataNode *dataNode)
198{
199 if (this->HasIndex(index))
200 {
201 // if node is identical, we only update the name in the QComboBoxItem
202 if (dataNode == m_Nodes.at(index))
203 {
204 this->setItemText(index, QString::fromStdString(dataNode->GetName()));
205 }
206 else
207 {
208 this->InsertNode(index, dataNode);
209 }
210 }
211}
212
213void QmitkDataStorageComboBox::SetNode(const mitk::DataNode *dataNode, const mitk::DataNode *otherDataNode)
214{

Callers

nothing calls this directly

Calls 5

HasIndexMethod · 0.95
InsertNodeMethod · 0.95
FindMethod · 0.95
atMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected