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

Method SetUiInstalling

Modules/PythonInstallerUI/src/QmitkPipInstallDialog.cpp:356–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void QmitkPipInstallDialog::SetUiInstalling()
357{
358 m_Ui->advancedSettingsButton->hide();
359
360 // A previous attempt may have left the details visible / accumulated output.
361 // Reset the details area so a retry starts clean. SetDetailsVisible(false)
362 // restores the spacer policy, hides the view, resets the button label, and
363 // shrinks the dialog back to the compact height.
364 m_Ui->detailsButton->hide();
365 this->SetDetailsVisible(false);
366 m_Ui->detailsView->clear();
367
368 // Reset the cancellation latch so a retry after a cancelled-then-abandoned
369 // attempt is not silently swallowed by the m_IsCancelling gate in
370 // OnInstallFinished. Also re-enable the button box that ConfirmCancel
371 // disables during teardown.
372 m_IsCancelling = false;
373 m_Ui->buttonBox->setEnabled(true);
374
375 if (auto* button = m_Ui->buttonBox->button(QDialogButtonBox::Ok))
376 button->setEnabled(false);
377
378 // Allow SetTerminalStatus to publish a new terminal message for this run.
379 m_TerminalStatusSet = false;
380
381 m_Ui->statusLabel->show();
382 m_Ui->packageLabel->clear();
383}
384
385void QmitkPipInstallDialog::SetStatus(const QString& text)
386{

Callers 1

OnInstallClickedMethod · 0.95

Calls 4

SetDetailsVisibleMethod · 0.95
showMethod · 0.80
clearMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected