| 1080 | } |
| 1081 | |
| 1082 | QString 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 | |
| 1102 | void ResultsTree::saveResults(Report *report) const |
| 1103 | { |