openmw-tes3coop/apps/wizard/conclusionpage.cpp

37 lines
1.3 KiB
C++
Raw Normal View History

2013-12-08 20:35:57 +00:00
#include "conclusionpage.hpp"
#include <QDebug>
#include "mainwizard.hpp"
Wizard::ConclusionPage::ConclusionPage(MainWizard *wizard) :
QWizardPage(wizard),
mWizard(wizard)
2013-12-08 20:35:57 +00:00
{
setupUi(this);
}
2013-12-08 21:58:29 +00:00
void Wizard::ConclusionPage::initializePage()
{
if (!mWizard->mError)
{
if (field("installation.new").toBool() == true)
{
textLabel->setText(tr("<html><head/><body><p>The OpenMW Wizard successfully installed Morrowind on your computer.</p> \
<p>Click Finish to close the Wizard.</p></body></html>"));
} else {
textLabel->setText(tr("<html><head/><body><p>The OpenMW Wizard successfully modified your existing Morrowind installation.</p> \
<p>Click Finish to close the Wizard.</p></body></html>"));
}
} else {
textLabel->setText(tr("<html><head/><body><p>The OpenMW Wizard failed to install Morrowind on your computer.</p> \
<p>Please report any bugs you might have encountered to our \
<a href=\"https://bugs.openmw.org\">bug tracker</a>.<br/>Make sure to include the installation log.</p><br/></body></html>"));
}
}
2013-12-08 21:58:29 +00:00
int Wizard::ConclusionPage::nextId() const
{
return -1;
}