forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user