| 6 | |
| 7 | |
| 8 | FvUpdateConfirmDialog::FvUpdateConfirmDialog(QWidget *parent) : |
| 9 | QDialog(parent), |
| 10 | m_ui(new Ui::FvUpdateConfirmDialog) |
| 11 | { |
| 12 | m_ui->setupUi(this); |
| 13 | |
| 14 | // Delete on close |
| 15 | setAttribute(Qt::WA_DeleteOnClose, true); |
| 16 | |
| 17 | // Set the "close app, then reopen" string |
| 18 | QString closeReopenString = m_ui->downloadThisUpdateLabel->text().arg(QString::fromUtf8(FV_APP_NAME)); |
| 19 | m_ui->downloadThisUpdateLabel->setText(closeReopenString); |
| 20 | |
| 21 | // Connect buttons |
| 22 | connect(m_ui->confirmButtonBox, SIGNAL(accepted()), |
| 23 | FvUpdater::sharedUpdater(), SLOT(UpdateInstallationConfirmed())); |
| 24 | connect(m_ui->confirmButtonBox, SIGNAL(rejected()), |
| 25 | FvUpdater::sharedUpdater(), SLOT(UpdateInstallationNotConfirmed())); |
| 26 | } |
| 27 | |
| 28 | FvUpdateConfirmDialog::~FvUpdateConfirmDialog() |
| 29 | { |
nothing calls this directly
no outgoing calls
no test coverage detected