mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 06:44:29 +00:00
Enabled language setting to be accessable from different pages
This commit is contained in:
parent
7132b9b0c5
commit
77fe73799a
@ -28,8 +28,6 @@ void Wizard::ComponentSelectionPage::updateButton(QListWidgetItem *item)
|
|||||||
for (int i =0; i < componentsList->count(); ++i) {
|
for (int i =0; i < componentsList->count(); ++i) {
|
||||||
QListWidgetItem *item = componentsList->item(i);
|
QListWidgetItem *item = componentsList->item(i);
|
||||||
|
|
||||||
qDebug() << "item is " << item->text();
|
|
||||||
|
|
||||||
if (!item)
|
if (!item)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@ Wizard::InstallationPage::InstallationPage(MainWizard *wizard) :
|
|||||||
|
|
||||||
void Wizard::InstallationPage::initializePage()
|
void Wizard::InstallationPage::initializePage()
|
||||||
{
|
{
|
||||||
|
QString path = field("installation.path").toString();
|
||||||
|
|
||||||
qDebug() << "installing to: " << field("installation.path").toString();
|
qDebug() << "installing to: " << field("installation.path").toString();
|
||||||
logTextEdit->setText(QString("Installing to %1").arg(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()
|
void Wizard::InstallationTargetPage::initializePage()
|
||||||
{
|
{
|
||||||
|
qDebug() << mWizard->field("installation.language");
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
|
QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,6 +24,10 @@ Wizard::MainWizard::MainWizard(QWidget *parent) :
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
setWindowTitle(tr("OpenMW Wizard"));
|
setWindowTitle(tr("OpenMW Wizard"));
|
||||||
|
|
||||||
|
// Set the property for comboboxes to the text instead of index
|
||||||
|
setDefaultProperty("QComboBox", "currentText", "currentIndexChanged");
|
||||||
|
|
||||||
setupInstallations();
|
setupInstallations();
|
||||||
setupPages();
|
setupPages();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user