1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/apps/wizard/methodselectionpage.cpp

24 lines
621 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 (newLocationRadioButton->isChecked()) {
//wizard()->setField("installation.new", true);
2013-12-08 21:58:29 +00:00
return MainWizard::Page_InstallationTarget;
} else {
//wizard()->setField("installation.new", false);
2013-12-08 21:58:29 +00:00
return MainWizard::Page_ExistingInstallation;
}
}