Enabled language setting to be accessable from different pages

pull/136/head
pvdk 11 years ago
parent 7132b9b0c5
commit 77fe73799a

@ -28,8 +28,6 @@ void Wizard::ComponentSelectionPage::updateButton(QListWidgetItem *item)
for (int i =0; i < componentsList->count(); ++i) {
QListWidgetItem *item = componentsList->item(i);
qDebug() << "item is " << item->text();
if (!item)
continue;

@ -13,6 +13,8 @@ Wizard::InstallationPage::InstallationPage(MainWizard *wizard) :
void Wizard::InstallationPage::initializePage()
{
QString path = field("installation.path").toString();
qDebug() << "installing to: " << field("installation.path").toString();
logTextEdit->setText(QString("Installing to %1").arg(field("installation.path").toString()));
}

@ -17,6 +17,8 @@ Wizard::InstallationTargetPage::InstallationTargetPage(MainWizard *wizard) :
void Wizard::InstallationTargetPage::initializePage()
{
qDebug() << mWizard->field("installation.language");
#ifdef Q_OS_WIN
QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
#endif

@ -24,6 +24,10 @@ Wizard::MainWizard::MainWizard(QWidget *parent) :
#endif
setWindowTitle(tr("OpenMW Wizard"));
// Set the property for comboboxes to the text instead of index
setDefaultProperty("QComboBox", "currentText", "currentIndexChanged");
setupInstallations();
setupPages();
}

Loading…
Cancel
Save