Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/duckstation-qt/consolesettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,16 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
&ConsoleSettingsWidget::onEnableCPUClockSpeedControlChecked);
connect(m_ui.cpuClockSpeed, &QSlider::valueChanged, this, &ConsoleSettingsWidget::onCPUClockSpeedValueChanged);

SettingWidgetBinder::SetAvailability(m_ui.fastBoot, !m_dialog->hasGameTrait(GameDatabase::Trait::ForceFullBoot));
SettingWidgetBinder::SetAvailability(m_ui.fastForwardBoot, !m_dialog->hasGameTrait(GameDatabase::Trait::ForceFullBoot));
SettingWidgetBinder::SetAvailability(
m_ui.cpuExecutionMode, !m_dialog->hasGameTrait(GameDatabase::Trait::ForceInterpreter), m_ui.cpuExecutionModeLabel);
SettingWidgetBinder::SetAvailability(m_ui.cdromReadSpeedup,
!m_dialog->hasGameTrait(GameDatabase::Trait::DisableCDROMReadSpeedup),
m_ui.cdromReadSpeedupLabel);
SettingWidgetBinder::SetAvailability(m_ui.cdromSeekSpeedup,
!m_dialog->hasGameTrait(GameDatabase::Trait::DisableCDROMSeekSpeedup),
m_ui.cdromSeekSpeedupLabel);

calculateCPUClockValue();
}
Expand Down
8 changes: 4 additions & 4 deletions src/duckstation-qt/consolesettingswidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>648</width>
<height>468</height>
<width>640</width>
<height>492</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down Expand Up @@ -173,7 +173,7 @@
</property>
<layout class="QGridLayout" name="cdromLayout" columnstretch="0,1">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="cdromReadSpeedupLabel">
<property name="text">
<string>Read Speedup:</string>
</property>
Expand Down Expand Up @@ -239,7 +239,7 @@
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_5">
<widget class="QLabel" name="cdromSeekSpeedupLabel">
<property name="text">
<string>Seek Speedup:</string>
</property>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/settingwidgetbinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -1521,11 +1521,11 @@ inline void SetAvailability(WidgetType* widget, bool available, QLabel* widget_l
if constexpr (std::is_same_v<WidgetType, QComboBox>)
{
widget->clear();
widget->addItem(qApp->translate("SettingWidgetBinder", "Incompatible with this game."));
widget->addItem(qApp->translate("SettingWidgetBinder", "Incompatible with this game"));
}
else if constexpr (std::is_same_v<WidgetType, QLineEdit>)
{
widget->setText(qApp->translate("SettingWidgetBinder", "Incompatible with this game."));
widget->setText(qApp->translate("SettingWidgetBinder", "Incompatible with this game"));
}
else if constexpr (std::is_same_v<WidgetType, QCheckBox>)
{
Expand Down
Loading