diff options
Diffstat (limited to 'rbutil/rbutilqt/encttscfggui.cpp')
-rw-r--r-- | rbutil/rbutilqt/encttscfggui.cpp | 5 |
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; |