| 9 | |
| 10 | |
| 11 | FvUpdateWindow::FvUpdateWindow(QWidget *parent) : |
| 12 | QWidget(parent), |
| 13 | m_ui(new Ui::FvUpdateWindow) |
| 14 | { |
| 15 | m_ui->setupUi(this); |
| 16 | |
| 17 | m_appIconScene = 0; |
| 18 | |
| 19 | // Delete on close |
| 20 | setAttribute(Qt::WA_DeleteOnClose, true); |
| 21 | |
| 22 | // Set the "new version is available" string |
| 23 | QString newVersString = m_ui->newVersionIsAvailableLabel->text().arg(QString::fromUtf8(FV_APP_NAME)); |
| 24 | m_ui->newVersionIsAvailableLabel->setText(newVersString); |
| 25 | |
| 26 | // Connect buttons |
| 27 | connect(m_ui->installUpdateButton, SIGNAL(clicked()), |
| 28 | FvUpdater::sharedUpdater(), SLOT(InstallUpdate())); |
| 29 | connect(m_ui->skipThisVersionButton, SIGNAL(clicked()), |
| 30 | FvUpdater::sharedUpdater(), SLOT(SkipUpdate())); |
| 31 | connect(m_ui->remindMeLaterButton, SIGNAL(clicked()), |
| 32 | FvUpdater::sharedUpdater(), SLOT(RemindMeLater())); |
| 33 | } |
| 34 | |
| 35 | FvUpdateWindow::~FvUpdateWindow() |
| 36 | { |
nothing calls this directly
no outgoing calls
no test coverage detected