summaryrefslogtreecommitdiff
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.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)
91 case EncTtsSetting::eDOUBLE: 91 case EncTtsSetting::eDOUBLE:
92 { 92 {
93 QDoubleSpinBox *spinBox = new QDoubleSpinBox(this); 93 QDoubleSpinBox *spinBox = new QDoubleSpinBox(this);
94 spinBox->setAccessibleName(setting->name());
94 spinBox->setMinimum(setting->min().toDouble()); 95 spinBox->setMinimum(setting->min().toDouble());
95 spinBox->setMaximum(setting->max().toDouble()); 96 spinBox->setMaximum(setting->max().toDouble());
96 spinBox->setSingleStep(0.01); 97 spinBox->setSingleStep(0.01);
@@ -102,6 +103,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
102 case EncTtsSetting::eINT: 103 case EncTtsSetting::eINT:
103 { 104 {
104 QSpinBox *spinBox = new QSpinBox(this); 105 QSpinBox *spinBox = new QSpinBox(this);
106 spinBox->setAccessibleName(setting->name());
105 spinBox->setMinimum(setting->min().toInt()); 107 spinBox->setMinimum(setting->min().toInt());
106 spinBox->setMaximum(setting->max().toInt()); 108 spinBox->setMaximum(setting->max().toInt());
107 spinBox->setValue(setting->current().toInt()); 109 spinBox->setValue(setting->current().toInt());
@@ -112,6 +114,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
112 case EncTtsSetting::eSTRING: 114 case EncTtsSetting::eSTRING:
113 { 115 {
114 QLineEdit *lineEdit = new QLineEdit(this); 116 QLineEdit *lineEdit = new QLineEdit(this);
117 lineEdit->setAccessibleName(setting->name());
115 lineEdit->setText(setting->current().toString()); 118 lineEdit->setText(setting->current().toString());
116 connect(lineEdit,SIGNAL(textChanged(QString)),this,SLOT(updateSetting())); 119 connect(lineEdit,SIGNAL(textChanged(QString)),this,SLOT(updateSetting()));
117 value = lineEdit; 120 value = lineEdit;
@@ -125,6 +128,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
125 case EncTtsSetting::eSTRINGLIST: 128 case EncTtsSetting::eSTRINGLIST:
126 { 129 {
127 QComboBox *comboBox = new QComboBox(this); 130 QComboBox *comboBox = new QComboBox(this);
131 comboBox->setAccessibleName(setting->name());
128 comboBox->addItems(setting->list()); 132 comboBox->addItems(setting->list());
129 int index = comboBox->findText(setting->current().toString()); 133 int index = comboBox->findText(setting->current().toString());
130 comboBox->setCurrentIndex(index); 134 comboBox->setCurrentIndex(index);
@@ -135,6 +139,7 @@ QLayout* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
135 case EncTtsSetting::eBOOL: 139 case EncTtsSetting::eBOOL:
136 { 140 {
137 QCheckBox *checkbox = new QCheckBox(this); 141 QCheckBox *checkbox = new QCheckBox(this);
142 checkbox->setAccessibleName(setting->name());
138 checkbox->setCheckState(setting->current().toBool() == true ? Qt::Checked : Qt::Unchecked); 143 checkbox->setCheckState(setting->current().toBool() == true ? Qt::Checked : Qt::Unchecked);
139 connect(checkbox,SIGNAL(stateChanged(int)),this,SLOT(updateSetting())); 144 connect(checkbox,SIGNAL(stateChanged(int)),this,SLOT(updateSetting()));
140 value = checkbox; 145 value = checkbox;