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>
pull/518/head
Michele Calgaro 3 months ago
parent e84954ddc1
commit 8afb12b32b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

@ -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);

@ -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()));

Loading…
Cancel
Save