summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-29 20:26:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-01 20:38:20 +0900
commit8afb12b32bbc7ef5de9a3821b6f2dae7c658e7db (patch)
tree3378d33181c940c84f699bc8e236661bda28e071
parente84954ddc1a0406ae319dd02a7d946ed62cb6859 (diff)
downloadtdebase-8afb12b32bbc7ef5de9a3821b6f2dae7c658e7db.tar.gz
tdebase-8afb12b32bbc7ef5de9a3821b6f2dae7c658e7db.zip
Improve settings for some sliders related to keyboard, accessibility and style. This also solves issue #513
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--kcontrol/access/kcmaccess.cpp8
-rw-r--r--kcontrol/style/kcmstyle.cpp2
-rw-r--r--kxkb/kcmmisc.cpp8
3 files changed, 10 insertions, 8 deletions
diff --git a/kcontrol/access/kcmaccess.cpp b/kcontrol/access/kcmaccess.cpp
index 374bec295..e8c41accc 100644
--- a/kcontrol/access/kcmaccess.cpp
+++ b/kcontrol/access/kcmaccess.cpp
@@ -320,7 +320,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
hbox->addSpacing(24);
durationSlider = new ExtendedIntNumInput(grp);
- durationSlider->setRange(100, 2000, 100);
+ durationSlider->setRange(10, 2000, 10);
durationSlider->setLabel(i18n("Duration:"));
durationSlider->setSuffix(i18n(" msec"));
hbox->addWidget(durationSlider);
@@ -424,7 +424,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
hbox->addSpacing(24);
slowKeysDelay = new ExtendedIntNumInput(grp);
slowKeysDelay->setSuffix(i18n(" msec"));
- slowKeysDelay->setRange(50, 10000, 100);
+ slowKeysDelay->setRange(10, 10000, 10);
slowKeysDelay->setLabel(i18n("Acceptance dela&y:"));
hbox->addWidget(slowKeysDelay);
@@ -456,7 +456,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
hbox->addSpacing(24);
bounceKeysDelay = new ExtendedIntNumInput(grp);
bounceKeysDelay->setSuffix(i18n(" msec"));
- bounceKeysDelay->setRange(100, 5000, 100);
+ bounceKeysDelay->setRange(10, 5000, 10);
bounceKeysDelay->setLabel(i18n("D&ebounce time:"));
hbox->addWidget(bounceKeysDelay);
@@ -513,7 +513,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
hbox->addSpacing(24);
timeoutDelay = new KIntNumInput(grp);
timeoutDelay->setSuffix(i18n(" min"));
- timeoutDelay->setRange(1, 30, 4);
+ timeoutDelay->setRange(1, 30, 1);
timeoutDelay->setLabel(i18n("Timeout:"));
hbox->addWidget(timeoutDelay);
diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp
index 9dd53616c..53f4fe048 100644
--- a/kcontrol/style/kcmstyle.cpp
+++ b/kcontrol/style/kcmstyle.cpp
@@ -197,7 +197,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name )
m_popupMenuDelay = new KIntNumInput(250, gbWidgetStyle);
m_popupMenuDelay->setLabel(i18n("Menu popup delay:"));
- m_popupMenuDelay->setRange(0, 5000, 50);
+ m_popupMenuDelay->setRange(0, 5000, 10);
m_popupMenuDelay->setSuffix(i18n(" msec"));
m_popupMenuDelay->setSteps(50, 50);
gbWidgetStyleLayout->addWidget(m_popupMenuDelay);
diff --git a/kxkb/kcmmisc.cpp b/kxkb/kcmmisc.cpp
index c23b3cf6c..9fc18bb08 100644
--- a/kxkb/kcmmisc.cpp
+++ b/kxkb/kcmmisc.cpp
@@ -61,15 +61,17 @@ KeyboardConfig::KeyboardConfig (TQWidget * parent, const char *)
lay->addStretch();
ui->click->setRange(0, 100, 10);
- ui->delay->setRange(100, 5000, 50, false);
+ ui->delay->setRange(0, 5000, 10, false);
ui->rate->setRange(5, 50, 5, false);
- ui->delaySlider->setRange(1000, 50000);
+ // Values multiplied by 10 compated to the integer input field
+ ui->delaySlider->setRange(0, 50000);
ui->delaySlider->setSteps(50, 500);
ui->delaySlider->setTickInterval(2500);
+ // Values multiplied by 100 compated to the integer input field
ui->rateSlider->setRange(500, 5000);
- ui->rateSlider->setSteps(50, 500);
+ ui->rateSlider->setSteps(100, 500);
ui->rateSlider->setTickInterval(500);
connect(ui->repeatBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(changed()));