|
|
|
@ -159,8 +159,8 @@ bool Launcher::GraphicsPage::loadSettings()
|
|
|
|
|
if (mGraphicsSettings.value(QString("Video/fullscreen")) == QLatin1String("true"))
|
|
|
|
|
fullScreenCheckBox->setCheckState(Qt::Checked);
|
|
|
|
|
|
|
|
|
|
if (mGraphicsSettings.value(QString("Video/borderless")) == QLatin1String("true"))
|
|
|
|
|
borderlessCheckBox->setCheckState(Qt::Checked);
|
|
|
|
|
if (mGraphicsSettings.value(QString("Video/window border")) == QLatin1String("true"))
|
|
|
|
|
windowBorderCheckBox->setCheckState(Qt::Checked);
|
|
|
|
|
|
|
|
|
|
int aaIndex = antiAliasingComboBox->findText(mGraphicsSettings.value(QString("Video/antialiasing")));
|
|
|
|
|
if (aaIndex != -1)
|
|
|
|
@ -196,8 +196,8 @@ void Launcher::GraphicsPage::saveSettings()
|
|
|
|
|
fullScreenCheckBox->checkState() ? mGraphicsSettings.setValue(QString("Video/fullscreen"), QString("true"))
|
|
|
|
|
: mGraphicsSettings.setValue(QString("Video/fullscreen"), QString("false"));
|
|
|
|
|
|
|
|
|
|
borderlessCheckBox->checkState() ? mGraphicsSettings.setValue(QString("Video/borderless"), QString("true"))
|
|
|
|
|
: mGraphicsSettings.setValue(QString("Video/borderless"), QString("false"));
|
|
|
|
|
windowBorderCheckBox->checkState() ? mGraphicsSettings.setValue(QString("Video/window border"), QString("true"))
|
|
|
|
|
: mGraphicsSettings.setValue(QString("Video/window border"), QString("false"));
|
|
|
|
|
|
|
|
|
|
mGraphicsSettings.setValue(QString("Video/antialiasing"), antiAliasingComboBox->currentText());
|
|
|
|
|
mGraphicsSettings.setValue(QString("Video/render system"), rendererComboBox->currentText());
|
|
|
|
@ -337,10 +337,12 @@ void Launcher::GraphicsPage::slotFullScreenChanged(int state)
|
|
|
|
|
customRadioButton->setEnabled(false);
|
|
|
|
|
customWidthSpinBox->setEnabled(false);
|
|
|
|
|
customHeightSpinBox->setEnabled(false);
|
|
|
|
|
windowBorderCheckBox->setEnabled(false);
|
|
|
|
|
} else {
|
|
|
|
|
customRadioButton->setEnabled(true);
|
|
|
|
|
customWidthSpinBox->setEnabled(true);
|
|
|
|
|
customHeightSpinBox->setEnabled(true);
|
|
|
|
|
windowBorderCheckBox->setEnabled(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|