MCPcopy Create free account
hub / github.com/cpeditor/cpeditor / LanguageRepository

Method LanguageRepository

src/Editor/LanguageRepository.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace Editor
27{
28LanguageRepository::LanguageRepository(const QString &language, QObject *parent) : QObject(parent)
29{
30 QString jsonDoc = Util::readFile(":/language_config.json");
31 doc = QJsonDocument::fromJson(jsonDoc.toLocal8Bit());
32 QJsonObject jsonObject = doc[language].toObject();
33}
34
35void LanguageRepository::changeLanguage(const QString &newLang)
36{

Callers

nothing calls this directly

Calls 1

readFileFunction · 0.85

Tested by

no test coverage detected