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

Method encodingMethodChanged

gui/src/forms/frmoptions.cpp:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void frmOptions::encodingMethodChanged(int method) {
268 EncodingChangeMethod cemMethod = static_cast<EncodingChangeMethod>(method);
269 bool enableEncodingSettings = cemMethod == ECM_CHANGE;
270 ui.cbEncFrom->setEnabled(enableEncodingSettings);
271 ui.lbConvert->setEnabled(enableEncodingSettings);
272 ui.lbConvertFrom->setEnabled(enableEncodingSettings);
273 ui.cbEncTo->setEnabled(enableEncodingSettings);
274 ui.cbAutoDetectEncoding->setEnabled(enableEncodingSettings);
275 ui.cbShowAllEncodings->setEnabled(enableEncodingSettings);
276 autoDetectEncodingClicked();
277}
278
279void frmOptions::autoDetectEncodingClicked() {
280 bool checkedCE = static_cast<EncodingChangeMethod>(

Callers

nothing calls this directly

Calls 1

setEnabledMethod · 0.80

Tested by

no test coverage detected