2014-06-08 17:02:20 +01:00
|
|
|
#include "LegacyUpgradePage.h"
|
2014-06-30 01:02:57 +01:00
|
|
|
#include <logic/LegacyInstance.h>
|
2014-06-08 17:02:20 +01:00
|
|
|
#include "ui_LegacyUpgradePage.h"
|
|
|
|
|
|
|
|
QString LegacyUpgradePage::displayName()
|
|
|
|
{
|
|
|
|
return tr("Upgrade");
|
|
|
|
}
|
|
|
|
|
|
|
|
QIcon LegacyUpgradePage::icon()
|
|
|
|
{
|
2014-06-08 20:26:48 +01:00
|
|
|
return QIcon::fromTheme("checkupdate");
|
2014-06-08 17:02:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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?
|
|
|
|
}
|
2014-06-30 01:02:57 +01:00
|
|
|
|
|
|
|
bool LegacyUpgradePage::shouldDisplay()
|
|
|
|
{
|
|
|
|
return !m_inst->isRunning();
|
|
|
|
}
|