2014-06-08 21:32:20 +05:30
|
|
|
#include "LegacyUpgradePage.h"
|
2014-06-30 05:32:57 +05:30
|
|
|
#include <logic/LegacyInstance.h>
|
2014-06-08 21:32:20 +05:30
|
|
|
#include "ui_LegacyUpgradePage.h"
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
QString LegacyUpgradePage::displayName() const
|
2014-06-08 21:32:20 +05:30
|
|
|
{
|
|
|
|
return tr("Upgrade");
|
|
|
|
}
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
QIcon LegacyUpgradePage::icon() const
|
2014-06-08 21:32:20 +05:30
|
|
|
{
|
2014-06-09 00:56:48 +05:30
|
|
|
return QIcon::fromTheme("checkupdate");
|
2014-06-08 21:32:20 +05:30
|
|
|
}
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
QString LegacyUpgradePage::id() const
|
2014-06-08 21:32:20 +05:30
|
|
|
{
|
|
|
|
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 05:32:57 +05:30
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
bool LegacyUpgradePage::shouldDisplay() const
|
2014-06-30 05:32:57 +05:30
|
|
|
{
|
|
|
|
return !m_inst->isRunning();
|
2014-07-12 21:28:23 +05:30
|
|
|
}
|