From 18e135ba3b506b3b69eb1f9037d53799c7ea67bf Mon Sep 17 00:00:00 2001 From: Szybet <53944559+Szybet@users.noreply.github.com> Date: Sat, 30 Jul 2022 00:12:12 +0200 Subject: [PATCH] simplest solution to a complicated problem --- src/settings/powerdaemonsettings.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/settings/powerdaemonsettings.cpp b/src/settings/powerdaemonsettings.cpp index d8a1965..860f9f8 100644 --- a/src/settings/powerdaemonsettings.cpp +++ b/src/settings/powerdaemonsettings.cpp @@ -75,10 +75,25 @@ powerDaemonSettings::powerDaemonSettings(QWidget *parent) : stylesheetFile.close(); // Button tweaks + int autoRepeatDelay = 1250; + int autoRepeatInterval = 20; + ui->CBSDecreaseBtn->setAutoRepeat(true); + ui->CBSDecreaseBtn->setAutoRepeatDelay(autoRepeatDelay); + ui->CBSDecreaseBtn->setAutoRepeatInterval(autoRepeatInterval); + ui->CBSIncreaseBtn->setAutoRepeat(true); + ui->CBSIncreaseBtn->setAutoRepeatDelay(autoRepeatDelay); + ui->CBSIncreaseBtn->setAutoRepeatInterval(autoRepeatInterval); + ui->idleSleepDecreaseBtn->setAutoRepeat(true); + ui->idleSleepDecreaseBtn->setAutoRepeatDelay(autoRepeatDelay); + ui->idleSleepDecreaseBtn->setAutoRepeatInterval(autoRepeatInterval); + ui->idleSleepIncreaseBtn->setAutoRepeat(true); + ui->idleSleepIncreaseBtn->setAutoRepeatDelay(autoRepeatDelay); + ui->idleSleepIncreaseBtn->setAutoRepeatInterval(autoRepeatInterval); + // Hide items ui->hLabel_3->hide();