From fe08cb89023eab0dbe03cbc905de376b0ca311c5 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 13 Jun 2014 11:19:54 +0200 Subject: Centralize error/warning/info icons There are multiple copies of these pngs in different plugins. Let's have one version in core, also as @2x variant. Change-Id: Iedff1a6190a72c1947dd202ae1ee46f59f9fb13c Reviewed-by: Kai Koehne Reviewed-by: Alessandro Portale --- src/plugins/qmljstools/qmlconsoleitemdelegate.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/plugins/qmljstools/qmlconsoleitemdelegate.cpp') diff --git a/src/plugins/qmljstools/qmlconsoleitemdelegate.cpp b/src/plugins/qmljstools/qmlconsoleitemdelegate.cpp index 095b3d0ae9..114692c1c5 100644 --- a/src/plugins/qmljstools/qmlconsoleitemdelegate.cpp +++ b/src/plugins/qmljstools/qmlconsoleitemdelegate.cpp @@ -30,6 +30,8 @@ #include "qmlconsoleitemdelegate.h" #include "qmlconsoleedit.h" +#include + #include #include #include @@ -68,9 +70,9 @@ namespace Internal { QmlConsoleItemDelegate::QmlConsoleItemDelegate(QObject *parent) : QStyledItemDelegate(parent), - m_logIcon(QLatin1String(":/qmljstools/images/log.png")), - m_warningIcon(QLatin1String(":/qmljstools/images/warning.png")), - m_errorIcon(QLatin1String(":/qmljstools/images/error.png")), + m_logIcon(QLatin1String(Core::Constants::ICON_INFO)), + m_warningIcon(QLatin1String(Core::Constants::ICON_WARNING)), + m_errorIcon(QLatin1String(Core::Constants::ICON_ERROR)), m_expandIcon(QLatin1String(":/qmljstools/images/expand.png")), m_collapseIcon(QLatin1String(":/qmljstools/images/collapse.png")), m_prompt(QLatin1String(":/qmljstools/images/prompt.png")), -- cgit v1.2.1