MCPcopy Create free account
hub / github.com/QNapi/qnapi / subFormatChanged

Method subFormatChanged

gui/src/forms/frmoptions.cpp:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void 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
267void frmOptions::encodingMethodChanged(int method) {
268 EncodingChangeMethod cemMethod = static_cast<EncodingChangeMethod>(method);

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80
defaultExtensionMethod · 0.45

Tested by

no test coverage detected