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

Method toString

src/settingsvalidator.cpp:41–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41QString SettingsValidator::toString(Error error) const
42{
43 switch (error) {
44 case Error::NoSourceInstalled:
45 return QObject::tr("No recognizers installed");
46
47 case Error::NoSourceSet: return QObject::tr("Recognition language not set");
48
49 case Error::NoTranslatorInstalled:
50 return QObject::tr("No translators installed");
51
52 case Error::NoTranslatorSet:
53 return QObject::tr("No translators enabled (selected)");
54
55 case Error::NoTargetSet: return QObject::tr("Translation language not set");
56 }
57 return {};
58}

Callers 15

loadMethod · 0.80
paintMethod · 0.80
setEditorDataMethod · 0.80
settingsMethod · 0.80
updateCurrentPageMethod · 0.80
validateSettingsMethod · 0.80
setupTraceMethod · 0.80
setKeySequenceMethod · 0.80
handlerFunction · 0.80
toListFunction · 0.80
parseMethod · 0.80
handleReplyMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64