| 59 | } |
| 60 | |
| 61 | void 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 | |
| 75 | KTextEditor::Attribute::Ptr CodeHighlighting::attributeForType(CodeHighlightingType type, |
| 76 | CodeHighlightingContext context, |
nothing calls this directly
no test coverage detected