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

Method SetSelectedNode

Modules/QtWidgets/src/QmitkDataStorageComboBox.cpp:254–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void QmitkDataStorageComboBox::SetSelectedNode(const mitk::DataNode::Pointer& node)
255{
256 int index = this->Find(node);
257 if (index == -1)
258 {
259 MITK_INFO << "QmitkDataStorageComboBox: item not available";
260 }
261 else
262 {
263 this->setCurrentIndex(index);
264 }
265}
266
267void QmitkDataStorageComboBox::InsertNode(int index, const mitk::DataNode *dataNode)
268{

Callers 2

UpdateInfoMethod · 0.45

Calls 1

FindMethod · 0.95

Tested by

no test coverage detected