summaryrefslogtreecommitdiffstats
path: root/gui/pages/LegacyUpgradePage.cpp
blob: bb54210ce08d6ab75fa4736515db7710b94ff0dc (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()
{
	return tr("Upgrade");
}

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

QString LegacyUpgradePage::id()
{
	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()
{
	return !m_inst->isRunning();
}