MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / load

Method load

src/plugins/codeeditor/lsp/stylesettings.cpp:31–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool StyleSettings::load(const QString &filePath)
32{
33 QFile file(filePath);
34 if (!file.exists(filePath))
35 return false;
36
37 if (file.open(QFile::ReadOnly)) {
38 QJsonParseError error;
39 auto doc = QJsonDocument::fromJson(file.readAll(), &error);
40 if (error.error != QJsonParseError::NoError)
41 qCritical() << error.errorString();
42
43 parseThemeInfo(doc.object());
44 }
45
46 return true;
47}
48
49QJsonValue StyleSettings::value(const QString &theme, const QString &key)
50{

Callers 15

initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
readSettingsMethod · 0.45
updateMethod · 0.45
initServiceMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initDataMethod · 0.45
initializeMethod · 0.45

Calls 5

readAllMethod · 0.80
existsMethod · 0.45
openMethod · 0.45
errorStringMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected