|
|
@ -1,6 +1,9 @@
|
|
|
|
#include "methodselectionpage.hpp"
|
|
|
|
#include "methodselectionpage.hpp"
|
|
|
|
#include "mainwizard.hpp"
|
|
|
|
#include "mainwizard.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
|
|
|
|
|
|
|
|
|
|
|
Wizard::MethodSelectionPage::MethodSelectionPage(QWidget *parent) :
|
|
|
|
Wizard::MethodSelectionPage::MethodSelectionPage(QWidget *parent) :
|
|
|
|
QWizardPage(parent)
|
|
|
|
QWizardPage(parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -11,9 +14,12 @@ Wizard::MethodSelectionPage::MethodSelectionPage(QWidget *parent) :
|
|
|
|
#ifndef OPENMW_USE_UNSHIELD
|
|
|
|
#ifndef OPENMW_USE_UNSHIELD
|
|
|
|
retailDiscRadioButton->setEnabled(false);
|
|
|
|
retailDiscRadioButton->setEnabled(false);
|
|
|
|
existingLocationRadioButton->setChecked(true);
|
|
|
|
existingLocationRadioButton->setChecked(true);
|
|
|
|
|
|
|
|
buyLinkButton->released();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
registerField(QLatin1String("installation.retailDisc"), retailDiscRadioButton);
|
|
|
|
registerField(QLatin1String("installation.retailDisc"), retailDiscRadioButton);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(buyLinkButton, SIGNAL(released()), this, SLOT(handleBuyButton()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int Wizard::MethodSelectionPage::nextId() const
|
|
|
|
int Wizard::MethodSelectionPage::nextId() const
|
|
|
@ -24,3 +30,8 @@ int Wizard::MethodSelectionPage::nextId() const
|
|
|
|
return MainWizard::Page_ExistingInstallation;
|
|
|
|
return MainWizard::Page_ExistingInstallation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Wizard::MethodSelectionPage::handleBuyButton()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
QDesktopServices::openUrl(QUrl("https://openmw.org/faq/#do_i_need_morrowind"));
|
|
|
|
|
|
|
|
}
|
|
|
|