MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / severityToIcon

Method severityToIcon

gui/resultstree.cpp:1082–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082QString ResultsTree::severityToIcon(Severity severity)
1083{
1084 switch (severity) {
1085 case Severity::error:
1086 return ":images/dialog-error.png";
1087 case Severity::style:
1088 return ":images/applications-development.png";
1089 case Severity::warning:
1090 return ":images/dialog-warning.png";
1091 case Severity::portability:
1092 return ":images/applications-system.png";
1093 case Severity::performance:
1094 return ":images/utilities-system-monitor.png";
1095 case Severity::information:
1096 return ":images/dialog-information.png";
1097 default:
1098 return QString();
1099 }
1100}
1101
1102void ResultsTree::saveResults(Report *report) const
1103{

Callers

nothing calls this directly

Calls 1

QStringClass · 0.70

Tested by

no test coverage detected