1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Qt: improve fsr tooltip area

This commit is contained in:
Megamouse 2021-11-04 23:33:37 +01:00
parent f7eacf70ec
commit dac0baac0d
2 changed files with 87 additions and 71 deletions

View File

@ -639,9 +639,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
return tr("%1%").arg(value);
};
m_emu_settings->EnhanceSlider(ui->fsrSharpeningStrength, emu_settings_type::FsrSharpeningStrength);
SubscribeTooltip(ui->fsrSharpeningStrength, tooltips.settings.fsr_rcas_strength);
SubscribeTooltip(ui->fsrSharpeningStrengthVal, tooltips.settings.fsr_rcas_strength);
SubscribeTooltip(ui->fsrSharpeningStrengthReset, tooltips.settings.fsr_rcas_strength);
SubscribeTooltip(ui->fsrSharpeningStrengthWidget, tooltips.settings.fsr_rcas_strength);
ui->fsrSharpeningStrengthVal->setText(fmt_fsr_sharpening_strength(ui->fsrSharpeningStrength->value()));
connect(ui->fsrSharpeningStrength, &QSlider::valueChanged, [fmt_fsr_sharpening_strength, this](int value)
{

View File

@ -670,6 +670,21 @@
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="fsrSharpeningStrengthWidget" native="true">
<layout class="QVBoxLayout" name="fsrSharpeningWidgetLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="fsrSharpeningStrengthLabel">
<property name="sizePolicy">
@ -744,6 +759,9 @@
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="gpu_tab_layout_middle_spacer">
<property name="orientation">