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

Method OnInstallClicked

Modules/PythonInstallerUI/src/QmitkPipInstallDialog.cpp:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void QmitkPipInstallDialog::OnInstallClicked()
149{
150 // Total steps: 1 (venv, if needed) + 1 (pip upgrade, if requested) + 2 per
151 // group (resolve + install) + 1 per post-install step.
152 bool needsVirtualEnv = !m_Spec.venvName.empty() &&
153 !mitk::PythonHelper::VirtualEnvExists(m_Spec.venvName);
154 m_TotalSteps = (needsVirtualEnv ? 1 : 0) + (m_Spec.upgradePipFirst ? 1 : 0) +
155 2 * static_cast<int>(m_Spec.groups.size()) +
156 static_cast<int>(m_Spec.postInstallSteps.size());
157 m_CurrentStep = 0;
158
159 m_Installer->SetInstallSpec(m_Spec);
160 this->SetUiInstalling();
161 m_Installer->StartInstall();
162}
163
164void QmitkPipInstallDialog::OnToggleDetailsClicked()
165{

Callers

nothing calls this directly

Calls 5

SetUiInstallingMethod · 0.95
SetInstallSpecMethod · 0.80
StartInstallMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected