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

Method OnDoubleClicked

Modules/QtWidgets/src/QmitkNodeSelectionDialog.cpp:296–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void QmitkNodeSelectionDialog::OnDoubleClicked(const QModelIndex& /*index*/)
297{
298 const auto isOK = m_Controls->buttonBox->button(QDialogButtonBox::Ok)->isEnabled();
299 if (!m_SelectedNodes.empty() && isOK)
300 {
301 this->OnOK();
302 }
303}

Callers

nothing calls this directly

Calls 3

OnOKMethod · 0.95
isEnabledMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected