pollymc/gui/pages/LegacyUpgradePage.cpp
Petr Mrázek 421a46e3d3 Redo the console window. Log is now a page. Console window has relevant pages.
Dirty fix for screenshot thumbnail generation. Needs more QTimer.
2014-06-30 02:02:57 +02:00

39 lines
668 B
C++

#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();
}