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

Method FvUpdateWindow

_fervor/fvupdatewindow.cpp:11–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11FvUpdateWindow::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
35FvUpdateWindow::~FvUpdateWindow()
36{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected