MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / updateModels

Method updateModels

src/settingseditor.cpp:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463void SettingsEditor::updateModels()
464{
465 const auto source = ui->tesseractLangCombo->currentText();
466 models_.update(ui->tessdataPath->text(), ui->translatorsPath->text());
467 if (!source.isEmpty()) {
468 ui->tesseractLangCombo->setCurrentText(source);
469 } else if (ui->tesseractLangCombo->count() > 0) {
470 ui->tesseractLangCombo->setCurrentIndex(0);
471 }
472}
473
474void SettingsEditor::pickColor(QWidget *widget)
475{

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected