1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/apps/wizard/languageselectionpage.cpp

32 lines
705 B
C++
Raw Normal View History

#include "languageselectionpage.hpp"
#include "mainwizard.hpp"
Wizard::LanguageSelectionPage::LanguageSelectionPage(MainWizard *wizard) :
QWizardPage(wizard),
mWizard(wizard)
{
setupUi(this);
2013-12-24 22:09:31 +00:00
registerField(QLatin1String("installation.language"), languageComboBox);
}
void Wizard::LanguageSelectionPage::initializePage()
{
QStringList languages;
languages << "English"
<< "French"
<< "German"
<< "Italian"
<< "Polish"
<< "Russian"
<< "Spanish";
languageComboBox->addItems(languages);
}
int Wizard::LanguageSelectionPage::nextId() const
{
return MainWizard::Page_ComponentSelection;
}