forked from teamnwah/openmw-tes3coop
Enabled language setting to be accessable from different pages
This commit is contained in:
parent
7132b9b0c5
commit
77fe73799a
4 changed files with 8 additions and 2 deletions
|
@ -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…
Reference in a new issue