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

Function colorForSeverity

plugins/problemreporter/problemhighlighter.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31{
32
33QColor colorForSeverity(IProblem::Severity severity)
34{
35 KColorScheme scheme(QPalette::Active);
36 switch (severity) {
37 case IProblem::Error:
38 return scheme.foreground(KColorScheme::NegativeText).color();
39 case IProblem::Warning:
40 return scheme.foreground(KColorScheme::NeutralText).color();
41 case IProblem::Hint:
42 default:
43 return scheme.foreground(KColorScheme::PositiveText).color();
44 }
45}
46}
47
48ProblemHighlighter::ProblemHighlighter(KTextEditor::Document* document)

Callers 1

setProblemsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected