change resolution input layout

This commit is contained in:
Jarred Wilson 2025-02-20 16:15:08 -06:00
parent 090495d272
commit 66d6cba880
2 changed files with 21 additions and 16 deletions

View File

@ -300,8 +300,8 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
// Graphics
ui->graphicsAdapterGroupBox->installEventFilter(this);
ui->widthGroupBox->installEventFilter(this);
ui->heightGroupBox->installEventFilter(this);
// ui->widthGroupBox->installEventFilter(this);
ui->resolutionGroupBox->installEventFilter(this);
ui->heightDivider->installEventFilter(this);
ui->dumpShadersCheckBox->installEventFilter(this);
ui->nullGpuCheckBox->installEventFilter(this);
@ -576,7 +576,7 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) {
// Graphics
if (elementName == "graphicsAdapterGroupBox") {
text = tr("Graphics Device:\\nOn multiple GPU systems, select the GPU the emulator will use from the drop down list,\\nor select \"Auto Select\" to automatically determine it.");
} else if (elementName == "widthGroupBox" || elementName == "heightGroupBox") {
} else if (elementName == "resolutionGroupBox") {
text = tr("Width/Height:\\nSets the size of the emulator window at launch, which can be resized during gameplay.\\nThis is different from the in-game resolution.");
} else if (elementName == "heightDivider") {
text = tr("Vblank Divider:\\nThe frame rate at which the emulator refreshes at is multiplied by this number. Changing this may have adverse effects, such as increasing the game speed, or breaking critical game functionality that does not expect this to change!");

View File

@ -1005,13 +1005,20 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="resolutionLayout">
<layout class="QVBoxLayout" name="resolutionLayout">
<item>
<widget class="QGroupBox" name="widthGroupBox">
<widget class="QGroupBox" name="resolutionGroupBox">
<property name="title">
<string>Width</string>
<string>Resolution</string>
</property>
<layout class="QVBoxLayout" name="widthLayout">
<layout class="QHBoxLayout" name="resLayout">
<item>
<widget class="QLabel" name="widthLabel">
<property name="text">
<string>W:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="widthSpinBox">
<property name="accelerated">
@ -1034,15 +1041,13 @@
</property>
</widget>
</item>
</layout>
<item>
<widget class="QLabel" name="widthLabel">
<property name="text">
<string>H:</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="heightGroupBox">
<property name="title">
<string>Height</string>
</property>
<layout class="QVBoxLayout" name="heightLayout">
<item>
<widget class="QSpinBox" name="heightSpinBox">
<property name="frame">