#include "conclusionpage.hpp" #include #include "mainwizard.hpp" Wizard::ConclusionPage::ConclusionPage(QWidget* parent) : QWizardPage(parent) { mWizard = qobject_cast(parent); setupUi(this); setPixmap(QWizard::WatermarkPixmap, QPixmap(QStringLiteral(":/images/intropage-background.png"))); } void Wizard::ConclusionPage::initializePage() { const bool retailDisc = field(QStringLiteral("installation.retailDisc")).toBool(); if (!mWizard->mError) { if (retailDisc || field(QStringLiteral("installation.import-settings")).toBool()) { mWizard->runSettingsImporter(); } } if (!mWizard->mError) { if (retailDisc) { textLabel->setText( tr("

The OpenMW Wizard successfully installed Morrowind on your " "computer.

")); } else { textLabel->setText( tr("

The OpenMW Wizard successfully modified your existing Morrowind " "installation.")); } } else { textLabel->setText( tr("

The OpenMW Wizard failed to install Morrowind on your computer.

" "

Please report any bugs you might have encountered to our " "bug tracker.
Make sure to include the " "installation log.


")); } } int Wizard::ConclusionPage::nextId() const { return -1; }