1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 12:53:53 +00:00
openmw/apps/wizard/methodselectionpage.cpp

22 lines
515 B
C++
Raw Normal View History

2013-12-08 20:35:57 +00:00
#include "methodselectionpage.hpp"
#include <QDebug>
2013-12-08 21:58:29 +00:00
#include "mainwizard.hpp"
Wizard::MethodSelectionPage::MethodSelectionPage(MainWizard *wizard) :
QWizardPage(wizard),
mWizard(wizard)
2013-12-08 20:35:57 +00:00
{
setupUi(this);
registerField("installation.new", newLocationRadioButton);
2013-12-08 20:35:57 +00:00
}
2013-12-08 21:58:29 +00:00
int Wizard::MethodSelectionPage::nextId() const
{
if (field("installation.new").toBool() == true) {
return MainWizard::Page_InstallationTarget;
} else {
return MainWizard::Page_ExistingInstallation;
}
2013-12-08 21:58:29 +00:00
}