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

Method SetSelectionCheckFunction

Modules/QtWidgets/src/QmitkNodeSelectionDialog.cpp:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void QmitkNodeSelectionDialog::SetSelectionCheckFunction(const SelectionCheckFunctionType &checkFunction)
160{
161 m_CheckFunction = checkFunction;
162 auto checkResponse = m_CheckFunction(m_SelectedNodes);
163
164 SetErrorText(checkResponse);
165
166 m_Controls->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(checkResponse.empty());
167}
168
169void QmitkNodeSelectionDialog::SetErrorText(const std::string& checkResponse)
170{

Callers 5

ConfigureWidgetsMethod · 0.45
OnOnlyUnevenMethod · 0.45
CreateQtPartControlMethod · 0.45

Calls 2

setEnabledMethod · 0.45
emptyMethod · 0.45

Tested by 1

OnOnlyUnevenMethod · 0.36