pollymc/gui/pages/LegacyUpgradePage.cpp

39 lines
668 B
C++
Raw Normal View History

2014-06-08 21:32:20 +05:30
#include "LegacyUpgradePage.h"
#include <logic/LegacyInstance.h>
2014-06-08 21:32:20 +05:30
#include "ui_LegacyUpgradePage.h"
QString LegacyUpgradePage::displayName()
{
return tr("Upgrade");
}
QIcon LegacyUpgradePage::icon()
{
return QIcon::fromTheme("checkupdate");
2014-06-08 21:32:20 +05:30
}
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();
}