summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/encttscfggui.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-06-15 19:41:16 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-06-15 19:41:16 +0000
commit18e74c9d81cbf3a496a16c868c745128ed0c7709 (patch)
treeaeca9740bfda87f07368ade5428432bb121d35c1 /rbutil/rbutilqt/encttscfggui.cpp
parentb38640670751c954c76649a179d21c21ffa0b86a (diff)
downloadrockbox-18e74c9d81cbf3a496a16c868c745128ed0c7709.tar.gz
rockbox-18e74c9d81cbf3a496a16c868c745128ed0c7709.tar.bz2
rockbox-18e74c9d81cbf3a496a16c868c745128ed0c7709.zip
rbutil: improve accessibility a little bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21300 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/encttscfggui.cpp')
-rw-r--r--rbutil/rbutilqt/encttscfggui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/encttscfggui.cpp b/rbutil/rbutilqt/encttscfggui.cpp
index c38ff44df0..40fa1a4805 100644
--- a/rbutil/rbutilqt/encttscfggui.cpp
+++ b/rbutil/rbutilqt/encttscfggui.cpp
@@ -91,6 +91,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
case EncTtsSetting::eDOUBLE:
{
QDoubleSpinBox *spinBox = new QDoubleSpinBox(this);
+ spinBox->setAccessibleName(setting->name());
spinBox->setMinimum(setting->min().toDouble());
spinBox->setMaximum(setting->max().toDouble());
spinBox->setSingleStep(0.01);
@@ -102,6 +103,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
case EncTtsSetting::eINT:
{
QSpinBox *spinBox = new QSpinBox(this);
+ spinBox->setAccessibleName(setting->name());
spinBox->setMinimum(setting->min().toInt());
spinBox->setMaximum(setting->max().toInt());
spinBox->setValue(setting->current().toInt());
@@ -112,6 +114,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
case EncTtsSetting::eSTRING:
{
QLineEdit *lineEdit = new QLineEdit(this);
+ lineEdit->setAccessibleName(setting->name());
lineEdit->setText(setting->current().toString());
connect(lineEdit,SIGNAL(textChanged(QString)),this,SLOT(updateSetting()));
value = lineEdit;
@@ -125,6 +128,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
case EncTtsSetting::eSTRINGLIST:
{
QComboBox *comboBox = new QComboBox(this);
+ comboBox->setAccessibleName(setting->name());
comboBox->addItems(setting->list());
int index = comboBox->findText(setting->current().toString());
comboBox->setCurrentIndex(index);
@@ -135,6 +139,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
case EncTtsSetting::eBOOL:
{
QCheckBox *checkbox = new QCheckBox(this);
+ checkbox->setAccessibleName(setting->name());
checkbox->setCheckState(setting->current().toBool() == true ? Qt::Checked : Qt::Unchecked);
connect(checkbox,SIGNAL(stateChanged(int)),this,SLOT(updateSetting()));
value = checkbox;