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