#include "methodselectionpage.hpp" #include #include "mainwizard.hpp" Wizard::MethodSelectionPage::MethodSelectionPage(MainWizard *wizard) : QWizardPage(wizard), mWizard(wizard) { setupUi(this); registerField(QLatin1String("installation.new"), newLocationRadioButton); } int Wizard::MethodSelectionPage::nextId() const { if (field(QLatin1String("installation.new")).toBool() == true) { return MainWizard::Page_InstallationTarget; } else { return MainWizard::Page_ExistingInstallation; } }