| 285 | } |
| 286 | |
| 287 | void frmOptions::showAllEncodingsClicked() { |
| 288 | QString encFrom = ui.cbEncFrom->currentText(); |
| 289 | QString encTo = ui.cbEncTo->currentText(); |
| 290 | |
| 291 | if (ui.cbShowAllEncodings->isChecked()) { |
| 292 | showAllEncodings(); |
| 293 | } else { |
| 294 | ui.cbEncFrom->clear(); |
| 295 | ui.cbEncTo->clear(); |
| 296 | |
| 297 | QStringList codecs; |
| 298 | codecs << "windows-1250" |
| 299 | << "windows-1257" |
| 300 | << "ISO-8859-2" |
| 301 | << "ISO-8859-13" |
| 302 | << "ISO-8859-16" |
| 303 | << "UTF-8"; |
| 304 | |
| 305 | ui.cbEncFrom->addItems(codecs); |
| 306 | ui.cbEncTo->addItems(codecs); |
| 307 | } |
| 308 | |
| 309 | ui.cbEncFrom->setCurrentIndex(ui.cbEncFrom->findText(encFrom)); |
| 310 | ui.cbEncTo->setCurrentIndex(ui.cbEncTo->findText(encTo)); |
| 311 | } |
| 312 | |
| 313 | void frmOptions::showAllEncodings() { |
| 314 | ui.cbEncFrom->clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected