diff options
author | Alessandro Portale <alessandro.portale@digia.com> | 2014-05-19 12:21:28 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@digia.com> | 2014-05-19 16:51:59 +0200 |
commit | d6b12213a7ce70dd917c4dedcaef38d065af3670 (patch) | |
tree | 02bf4eb2d1098709a0d3be89e2f2b8af7688f705 /src/plugins/projectexplorer/task.cpp | |
parent | 75c14dab3e1ce7b89f249bfa7b59f21e17b8fa67 (diff) | |
download | qt-creator-d6b12213a7ce70dd917c4dedcaef38d065af3670.tar.gz |
ProjectExplorer: Use constants for compile_warning.png and _error
Instead of repeating strings like
":/projectexplorer/images/compile_warning.png" all over the code,
we should use constants for it.
Change-Id: I91b36838d6da0a2332381e433788e796948d26db
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/projectexplorer/task.cpp')
-rw-r--r-- | src/plugins/projectexplorer/task.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/task.cpp b/src/plugins/projectexplorer/task.cpp index 74995d2b32..f794969066 100644 --- a/src/plugins/projectexplorer/task.cpp +++ b/src/plugins/projectexplorer/task.cpp @@ -29,6 +29,7 @@ #include "task.h" +#include <projectexplorer/projectexplorerconstants.h> #include <utils/qtcassert.h> namespace ProjectExplorer @@ -38,9 +39,9 @@ static QString taskTypeIcon(Task::TaskType t) { switch (t) { case Task::Warning: - return QLatin1String(":/projectexplorer/images/compile_warning.png"); + return QLatin1String(ProjectExplorer::Constants::ICON_WARNING); case Task::Error: - return QLatin1String(":/projectexplorer/images/compile_error.png"); + return QLatin1String(ProjectExplorer::Constants::ICON_ERROR); case Task::Unknown: break; } |