Skip to content

Commit

Permalink
Qt: Add tooltip for stretch/expansion advanced settings
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Apr 21, 2024
1 parent eb91fe3 commit 106f2c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/duckstation-qt/audiosettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,15 @@ AudioSettingsWidget::AudioSettingsWidget(SettingsWindow* dialog, QWidget* parent
dialog->registerWidgetHelp(m_ui.expansionMode, tr("Expansion Mode"), tr("Disabled (Stereo)"),
tr("Determines how audio is expanded from stereo to surround for supported games. This "
"includes games that support Dolby Pro Logic/Pro Logic II."));
dialog->registerWidgetHelp(m_ui.expansionSettings, tr("Expansion Settings"), tr("N/A"),
tr("These settings fine-tune the behavior of the FreeSurround-based channel expander."));
dialog->registerWidgetHelp(
m_ui.stretchMode, tr("Stretch Mode"), tr("Time Stretching"),
tr("When running outside of 100% speed, adjusts the tempo on audio instead of dropping frames. Produces "
"much nicer fast forward/slowdown audio at a small cost to performance."));
dialog->registerWidgetHelp(m_ui.stretchSettings, tr("Stretch Settings"), tr("N/A"),
tr("These settings fine-tune the behavior of the SoundTouch audio time stretcher when "
"running outside of 100% speed."));
}

AudioSettingsWidget::~AudioSettingsWidget() = default;
Expand Down
6 changes: 6 additions & 0 deletions src/duckstation-qt/audiosettingswidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@
</item>
<item>
<widget class="QToolButton" name="expansionSettings">
<property name="toolTip">
<string>Expansion Settings</string>
</property>
<property name="icon">
<iconset theme="settings-3-line"/>
</property>
Expand All @@ -173,6 +176,9 @@
</item>
<item>
<widget class="QToolButton" name="stretchSettings">
<property name="toolTip">
<string>Stretch Settings</string>
</property>
<property name="icon">
<iconset theme="settings-3-line"/>
</property>
Expand Down

0 comments on commit 106f2c1

Please sign in to comment.