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

Method OnCurrentIndexChanged

Modules/QtWidgets/src/QmitkDataStorageComboBox.cpp:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void QmitkDataStorageComboBox::OnCurrentIndexChanged(int index)
247{
248 if (index >= 0 && index < this->count())
249 emit OnSelectionChanged(this->GetSelectedNode());
250 if (index == -1)
251 emit OnSelectionChanged(nullptr);
252}
253
254void QmitkDataStorageComboBox::SetSelectedNode(const mitk::DataNode::Pointer& node)
255{

Callers

nothing calls this directly

Calls 2

GetSelectedNodeMethod · 0.95
countMethod · 0.80

Tested by

no test coverage detected