Qt: Couple of consistency fixes

This commit is contained in:
Stenzek 2025-07-13 19:50:12 +10:00
parent cd77ace12a
commit 5c7a599cad
No known key found for this signature in database
2 changed files with 117 additions and 100 deletions

View File

@ -7,65 +7,37 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>500</width> <width>500</width>
<height>287</height> <height>267</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Audio Stretch Settings</string> <string>Audio Stretch Settings</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="3"> <item row="6" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_5"> <spacer name="verticalSpacer">
<property name="bottomMargin"> <property name="orientation">
<number>10</number> <enum>Qt::Orientation::Vertical</enum>
</property> </property>
<item> <property name="sizeHint" stdset="0">
<widget class="QLabel" name="icon"> <size>
<property name="minimumSize"> <width>20</width>
<size> <height>40</height>
<width>32</width> </size>
<height>32</height> </property>
</size> </spacer>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Audio Stretch Settings&lt;/span&gt;&lt;br/&gt;These settings fine-tune the behavior of the SoundTouch audio time stretcher when running outside of 100% speed.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::TextFormat::RichText</enum>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item> </item>
<item row="1" column="0"> <item row="2" column="2">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="seekWindowSizeLabel">
<property name="text"> <property name="text">
<string>Sequence Length:</string> <string>20</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Overlap:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -91,20 +63,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2">
<widget class="QLabel" name="sequenceLengthLabel">
<property name="text">
<string>30</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Seekwindow Size:</string>
</property>
</widget>
</item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QSlider" name="seekWindowSize"> <widget class="QSlider" name="seekWindowSize">
<property name="minimum"> <property name="minimum">
@ -127,17 +85,24 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2"> <item row="2" column="0">
<widget class="QLabel" name="seekWindowSizeLabel"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
<string>20</string> <string>Seekwindow Size:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="1" column="2">
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="sequenceLengthLabel">
<property name="text"> <property name="text">
<string>Overlap:</string> <string>30</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Sequence Length:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -163,10 +128,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2"> <item row="7" column="0" colspan="3">
<widget class="QLabel" name="overlapLabel"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="text"> <property name="standardButtons">
<string>10</string> <set>QDialogButtonBox::StandardButton::Close|QDialogButtonBox::StandardButton::RestoreDefaults</set>
</property> </property>
</widget> </widget>
</item> </item>
@ -177,6 +142,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2">
<widget class="QLabel" name="overlapLabel">
<property name="text">
<string>10</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="3"> <item row="5" column="0" colspan="3">
<widget class="QCheckBox" name="useAAFilter"> <widget class="QCheckBox" name="useAAFilter">
<property name="text"> <property name="text">
@ -184,19 +156,69 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="0" column="0" colspan="3">
<spacer name="verticalSpacer"> <layout class="QHBoxLayout" name="horizontalLayout_5">
<property name="orientation"> <property name="bottomMargin">
<enum>Qt::Orientation::Vertical</enum> <number>10</number>
</property> </property>
</spacer> <item>
</item> <widget class="QLabel" name="icon">
<item row="7" column="0" colspan="3"> <property name="minimumSize">
<widget class="QDialogButtonBox" name="buttonBox"> <size>
<property name="standardButtons"> <width>32</width>
<set>QDialogButtonBox::StandardButton::Close|QDialogButtonBox::StandardButton::RestoreDefaults</set> <height>32</height>
</property> </size>
</widget> </property>
<property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_4">
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Audio Stretch Settings</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>These settings fine-tune the behavior of the SoundTouch audio time stretcher when running outside of 100% speed.</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -151,20 +151,15 @@ void SettingsWindow::addPages()
QStringLiteral("volume-up-line"), QStringLiteral("volume-up-line"),
tr("<strong>Audio Settings</strong><hr>These options control the audio output of the console. Mouse over an option " tr("<strong>Audio Settings</strong><hr>These options control the audio output of the console. Mouse over an option "
"for additional information.")); "for additional information."));
{ addWidget(
QString title(tr("Achievements")); m_achievement_settings = new AchievementSettingsWidget(this, m_ui.settingsContainer), tr("Achievements"),
QString icon_text(QStringLiteral("trophy-line")); QStringLiteral("trophy-line"),
QString help_text( tr("<strong>Achievement Settings</strong><hr>DuckStation uses RetroAchievements as an achievement database and "
tr("<strong>Achievement Settings</strong><hr>DuckStation uses RetroAchievements as an achievement database and " "for tracking progress. To use achievements, please sign up for an account at <a href=\"%1\">%1</a>. To view "
"for tracking progress. To use achievements, please sign up for an account at <a href=\"%1\">%1</a>. To view " "the achievement list in-game, press the hotkey for <strong>Open Pause Menu</strong> and select "
"the achievement list in-game, press the hotkey for <strong>Open Pause Menu</strong> and select " "<strong>Achievements</strong> from the menu. Mouse over an option for additional information, and "
"<strong>Achievements</strong> from the menu. Mouse over an option for additional information, and " "Shift+Wheel to scroll this panel.")
"Shift+Wheel to scroll this panel.") .arg("https://retroachievements.org/"));
.arg("https://retroachievements.org/"));
addWidget(m_achievement_settings = new AchievementSettingsWidget(this, m_ui.settingsContainer), std::move(title),
std::move(icon_text), std::move(help_text));
}
if (!isPerGameSettings()) if (!isPerGameSettings())
{ {