From 9ef96e827429fc624d0a74f288a9ef8acf8c4177 Mon Sep 17 00:00:00 2001 From: MSuih Date: Thu, 16 Jan 2020 18:26:20 +0200 Subject: [PATCH] Add pagesteps for some controls With the snap changes the default pagestep of 1 is ignored because of rounding. --- rpcs3/rpcs3qt/settings_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 79d05d5bb7..ee3f477c80 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -949,6 +949,7 @@ settings_dialog::settings_dialog(std::shared_ptr guiSettings, std: EnhanceSlider(emu_settings::DriverWakeUpDelay, ui->wakeupDelay, ui->wakeupText, tr(u8"%0 µs")); SnapSlider(ui->wakeupDelay, 200); 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)); connect(ui->wakeupReset, &QAbstractButton::clicked, [=]() { @@ -957,6 +958,7 @@ settings_dialog::settings_dialog(std::shared_ptr guiSettings, std: EnhanceSlider(emu_settings::VBlankRate, ui->vblank, ui->vblankText, tr("%0 Hz")); SnapSlider(ui->vblank, 30); + ui->vblank->setPageStep(60); int vblankDef = stoi(xemu_settings->GetSettingDefault(emu_settings::VBlankRate)); connect(ui->vblankReset, &QAbstractButton::clicked, [=]() { @@ -965,6 +967,7 @@ settings_dialog::settings_dialog(std::shared_ptr guiSettings, std: EnhanceSlider(emu_settings::ClocksScale, ui->clockScale, ui->clockScaleText, tr("%0 %")); SnapSlider(ui->clockScale, 10); + ui->clockScale->setPageStep(50); int clocksScaleDef = stoi(xemu_settings->GetSettingDefault(emu_settings::ResolutionScale)); connect(ui->clockScaleReset, &QAbstractButton::clicked, [=]() {