mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
simplest solution to a complicated problem
This commit is contained in:
parent
4eaaeb33b8
commit
18e135ba3b
1 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue