Qt: Remove presets dropdown, hide restore defaults

Until it's implemented.
This commit is contained in:
Connor McLaughlin 2022-05-25 00:17:51 +10:00 committed by refractionpcsx2
parent 2c199e7c42
commit 332346449f
2 changed files with 3 additions and 21 deletions

View File

@ -93,9 +93,7 @@ void SettingsDialog::setupUi(const GameList::Entry* game)
tr("<strong>Summary</strong><hr>Eventually this will be where we can see patches and compute hashes/verify dumps/etc."));
}
// remove the preset buttons. but we might want to enable these in the future.
m_ui.restoreDefaultsButton->setVisible(false);
m_ui.settingsPreset->setVisible(false);
}
// Common to both per-game and global settings.
@ -142,6 +140,9 @@ void SettingsDialog::setupUi(const GameList::Entry* game)
connect(m_ui.settingsCategory, &QListWidget::currentRowChanged, this, &SettingsDialog::onCategoryCurrentRowChanged);
connect(m_ui.closeButton, &QPushButton::clicked, this, &SettingsDialog::accept);
connect(m_ui.restoreDefaultsButton, &QPushButton::clicked, this, &SettingsDialog::onRestoreDefaultsClicked);
// TODO: Remove this once they're implemented.
m_ui.restoreDefaultsButton->setVisible(false);
}
SettingsDialog::~SettingsDialog()

View File

@ -82,25 +82,6 @@
</item>
<item row="2" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QComboBox" name="settingsPreset">
<item>
<property name="text">
<string>Preset: Custom</string>
</property>
</item>
<item>
<property name="text">
<string>Preset: Safe (Default)</string>
</property>
</item>
<item>
<property name="text">
<string>Preset: Fast</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QPushButton" name="restoreDefaultsButton">
<property name="text">