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

Method setSourceLanguageModel

src/substitutionstable.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void SubstitutionsTable::setSourceLanguageModel(QStringListModel *model)
87{
88 sourceLanguages_ = model;
89 connect(model, &QStringListModel::modelReset, //
90 this, [this] {
91 if (rowCount() > 0) // must be at least 1 if inited
92 setSubstitutions(substitutions());
93 });
94}
95
96void SubstitutionsTable::setSubstitutions(const Substitutions &substitutions)
97{

Callers 1

SettingsEditorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected