| 354 | } |
| 355 | |
| 356 | void 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 | |
| 385 | void QmitkPipInstallDialog::SetStatus(const QString& text) |
| 386 | { |
no test coverage detected