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 <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2016-07-25 11:58:28 +02:00
committed by Thomas Hartmann
parent 13fbcb2d3e
commit 98f7a00e70
13 changed files with 19 additions and 31 deletions

View File

@@ -31,7 +31,7 @@
#include <utils/algorithm.h>
#include <utils/categorysortfiltermodel.h>
#include <utils/icon.h>
#include <utils/utilsicons.h>
#include <utils/itemviews.h>
#include <utils/qtcassert.h>
#include <utils/treemodel.h>
@@ -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;
}
}