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

Method closeEvent

Modules/PythonInstallerUI/src/QmitkPipInstallDialog.cpp:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void QmitkPipInstallDialog::closeEvent(QCloseEvent* event)
114{
115 if (m_Installer->IsRunning() && !this->ConfirmCancel())
116 {
117 event->ignore();
118 return;
119 }
120
121 // The user is dismissing the dialog. If a previous attempt failed and left
122 // a partial venv behind, clean it up. No-op after a successful install or
123 // after Cancel already did the cleanup.
124 m_Installer->AbandonInstall();
125}
126
127void QmitkPipInstallDialog::reject()
128{

Callers

nothing calls this directly

Calls 3

ConfirmCancelMethod · 0.95
AbandonInstallMethod · 0.80
IsRunningMethod · 0.45

Tested by

no test coverage detected