| 195 | } |
| 196 | |
| 197 | void 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 | |
| 213 | void QmitkDataStorageComboBox::SetNode(const mitk::DataNode *dataNode, const mitk::DataNode *otherDataNode) |
| 214 | { |
nothing calls this directly
no test coverage detected