mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
Add pagesteps for some controls
With the snap changes the default pagestep of 1 is ignored because of rounding.
This commit is contained in:
parent
cbaa8f3329
commit
9ef96e8274
@ -949,6 +949,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
|
|||||||
EnhanceSlider(emu_settings::DriverWakeUpDelay, ui->wakeupDelay, ui->wakeupText, tr(u8"%0 µs"));
|
EnhanceSlider(emu_settings::DriverWakeUpDelay, ui->wakeupDelay, ui->wakeupText, tr(u8"%0 µs"));
|
||||||
SnapSlider(ui->wakeupDelay, 200);
|
SnapSlider(ui->wakeupDelay, 200);
|
||||||
ui->wakeupDelay->setMaximum(7000); // Very large values must be entered with config.yml changes
|
ui->wakeupDelay->setMaximum(7000); // Very large values must be entered with config.yml changes
|
||||||
|
ui->wakeupDelay->setPageStep(200);
|
||||||
int wakeupDef = stoi(xemu_settings->GetSettingDefault(emu_settings::DriverWakeUpDelay));
|
int wakeupDef = stoi(xemu_settings->GetSettingDefault(emu_settings::DriverWakeUpDelay));
|
||||||
connect(ui->wakeupReset, &QAbstractButton::clicked, [=]()
|
connect(ui->wakeupReset, &QAbstractButton::clicked, [=]()
|
||||||
{
|
{
|
||||||
@ -957,6 +958,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
|
|||||||
|
|
||||||
EnhanceSlider(emu_settings::VBlankRate, ui->vblank, ui->vblankText, tr("%0 Hz"));
|
EnhanceSlider(emu_settings::VBlankRate, ui->vblank, ui->vblankText, tr("%0 Hz"));
|
||||||
SnapSlider(ui->vblank, 30);
|
SnapSlider(ui->vblank, 30);
|
||||||
|
ui->vblank->setPageStep(60);
|
||||||
int vblankDef = stoi(xemu_settings->GetSettingDefault(emu_settings::VBlankRate));
|
int vblankDef = stoi(xemu_settings->GetSettingDefault(emu_settings::VBlankRate));
|
||||||
connect(ui->vblankReset, &QAbstractButton::clicked, [=]()
|
connect(ui->vblankReset, &QAbstractButton::clicked, [=]()
|
||||||
{
|
{
|
||||||
@ -965,6 +967,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
|
|||||||
|
|
||||||
EnhanceSlider(emu_settings::ClocksScale, ui->clockScale, ui->clockScaleText, tr("%0 %"));
|
EnhanceSlider(emu_settings::ClocksScale, ui->clockScale, ui->clockScaleText, tr("%0 %"));
|
||||||
SnapSlider(ui->clockScale, 10);
|
SnapSlider(ui->clockScale, 10);
|
||||||
|
ui->clockScale->setPageStep(50);
|
||||||
int clocksScaleDef = stoi(xemu_settings->GetSettingDefault(emu_settings::ResolutionScale));
|
int clocksScaleDef = stoi(xemu_settings->GetSettingDefault(emu_settings::ResolutionScale));
|
||||||
connect(ui->clockScaleReset, &QAbstractButton::clicked, [=]()
|
connect(ui->clockScaleReset, &QAbstractButton::clicked, [=]()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user