MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / FvUpdateConfirmDialog

Method FvUpdateConfirmDialog

_fervor/fvupdateconfirmdialog.cpp:8–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8FvUpdateConfirmDialog::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
28FvUpdateConfirmDialog::~FvUpdateConfirmDialog()
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected