MCPcopy Create free account
hub / github.com/KDE/kdevelop / adaptToColorChanges

Method adaptToColorChanges

kdevplatform/language/highlighting/codehighlighting.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void CodeHighlighting::adaptToColorChanges()
62{
63 QMutexLocker lock(&m_dataMutex);
64 // disable local highlighting if the ratio is set to 0
65 m_localColorization = ICore::self()->languageController()->completionSettings()->localColorizationLevel() > 0;
66 // disable global highlighting if the ratio is set to 0
67 m_globalColorization = ICore::self()->languageController()->completionSettings()->globalColorizationLevel() > 0;
68
69 m_declarationAttributes.clear();
70 m_definitionAttributes.clear();
71 m_depthAttributes.clear();
72 m_referenceAttributes.clear();
73}
74
75KTextEditor::Attribute::Ptr CodeHighlighting::attributeForType(CodeHighlightingType type,
76 CodeHighlightingContext context,

Callers

nothing calls this directly

Calls 5

completionSettingsMethod · 0.80
languageControllerMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected