1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 05:15:33 +00:00
openmw-tes3mp/apps/wizard/languageselectionpage.cpp

21 lines
497 B
C++
Raw Normal View History

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