summaryrefslogtreecommitdiffstats
path: root/gui/pages/LegacyUpgradePage.cpp
blob: bc800bc8e8aa936c94351030e214554ff8352a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "LegacyUpgradePage.h"
#include <logic/LegacyInstance.h>
#include "ui_LegacyUpgradePage.h"

QString LegacyUpgradePage::displayName() const
{
	return tr("Upgrade");
}

QIcon LegacyUpgradePage::icon() const
{
	return QIcon::fromTheme("checkupdate");
}

QString LegacyUpgradePage::id() const
{
	return "upgrade";
}

LegacyUpgradePage::LegacyUpgradePage(LegacyInstance *inst, QWidget *parent)
	: QWidget(parent), ui(new Ui::LegacyUpgradePage), m_inst(inst)
{
	ui->setupUi(this);
}

LegacyUpgradePage::~LegacyUpgradePage()
{
	delete ui;
}

void LegacyUpgradePage::on_upgradeButton_clicked()
{
	// now what?
}

bool LegacyUpgradePage::shouldDisplay() const
{
	return !m_inst->isRunning();
}