| 253 | } |
| 254 | |
| 255 | void frmOptions::subFormatChanged(int format) { |
| 256 | if (format == 0) { |
| 257 | ui.cbSubExtension->setItemText(0, tr("Default")); |
| 258 | } else { |
| 259 | QString targetFormatName = ui.cbSubFormat->currentText(); |
| 260 | QSharedPointer<const SubtitleFormat> targetSF = |
| 261 | subtitleFormatsRegistry->select(targetFormatName); |
| 262 | QString targetDefaultExt = targetSF->defaultExtension(); |
| 263 | ui.cbSubExtension->setItemText(0, tr("Default (%1)").arg(targetDefaultExt)); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | void frmOptions::encodingMethodChanged(int method) { |
| 268 | EncodingChangeMethod cemMethod = static_cast<EncodingChangeMethod>(method); |
nothing calls this directly
no test coverage detected