From 98f7a00e7070c856c4a50a89eab6cb63b299db21 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 25 Jul 2016 11:58:28 +0200 Subject: Move "Ok", "Error" and "Notloaded" icons from ExtentionSystem to Utils These icons are useful in other situations (e.g. QmlDesigner) Change-Id: I31751b8ca8fea34c532d54d423e5fef07b370a4a Reviewed-by: Thomas Hartmann --- src/libs/extensionsystem/pluginview.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/libs/extensionsystem/pluginview.cpp') diff --git a/src/libs/extensionsystem/pluginview.cpp b/src/libs/extensionsystem/pluginview.cpp index 2dea6e1b25..6911475b53 100644 --- a/src/libs/extensionsystem/pluginview.cpp +++ b/src/libs/extensionsystem/pluginview.cpp @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include #include @@ -90,22 +90,16 @@ static const QIcon &icon(IconIndex icon) using namespace Utils; switch (icon) { case OkIcon: { - static const QIcon ok = - Icon({{QLatin1String(":/extensionsystem/images/ok.png"), - Theme::IconsRunToolBarColor}}, Icon::Tint).icon(); + static const QIcon ok = Utils::Icons::OK.icon(); return ok; } case ErrorIcon: { - static const QIcon error = - Icon({{QLatin1String(":/extensionsystem/images/error.png"), - Theme::IconsErrorColor}}, Icon::Tint).icon(); + static const QIcon error = Utils::Icons::ERROR.icon(); return error; } default: case NotLoadedIcon: { - static const QIcon notLoaded = - Icon({{QLatin1String(":/extensionsystem/images/notloaded.png"), - Theme::IconsErrorColor}}, Icon::Tint).icon(); + static const QIcon notLoaded = Utils::Icons::NOTLOADED.icon(); return notLoaded; } } -- cgit v1.2.1