diff --git a/gui/gui.qrc b/gui/gui.qrc index 08f069456..fa8a2215b 100644 --- a/gui/gui.qrc +++ b/gui/gui.qrc @@ -15,7 +15,9 @@ images/showerrors.png images/showstylewarnings.png images/openproject.png - + images/showwarnings.png + images/showperformance.png + images/utilities-system-monitor.png ../COPYING ../AUTHORS images/go-home.png diff --git a/gui/images/showperformance.png b/gui/images/showperformance.png new file mode 100644 index 000000000..f2d266f79 Binary files /dev/null and b/gui/images/showperformance.png differ diff --git a/gui/images/showwarnings.png b/gui/images/showwarnings.png new file mode 100644 index 000000000..45b64a798 Binary files /dev/null and b/gui/images/showwarnings.png differ diff --git a/gui/images/utilities-system-monitor.png b/gui/images/utilities-system-monitor.png new file mode 100644 index 000000000..f2d266f79 Binary files /dev/null and b/gui/images/utilities-system-monitor.png differ diff --git a/gui/main.ui b/gui/main.ui index 76d91da59..2e6c75260 100644 --- a/gui/main.ui +++ b/gui/main.ui @@ -177,7 +177,9 @@ false + + @@ -427,6 +429,10 @@ true + + + :/images/showwarnings.png:/images/showwarnings.png + Warnings @@ -441,6 +447,10 @@ true + + + :/images/showperformance.png:/images/showperformance.png + Performance warnings diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index c9b7a1fa7..06e0fc3d3 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -626,12 +626,14 @@ void ResultsTree::CopyPath(QStandardItem *target, bool fullPath) QString ResultsTree::SeverityToIcon(const QString &severity) const { - if (severity == "possible error") - return ":images/dialog-warning.png"; if (severity == "error") return ":images/dialog-error.png"; - if (severity == "style" || severity == "possible style") + if (severity == "style") return ":images/dialog-information.png"; + if (severity == "warning") + return ":images/dialog-warning.png"; + if (severity == "performance") + return ":images/utilities-system-monitor.png"; return ""; }