aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/memcheckerrorview.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2016-04-10 20:32:28 +0200
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2016-04-12 13:57:08 +0000
commita84fe0b762b00f6e6fadc0b807ebff3b702114a8 (patch)
tree062d8fcbfd95ac5551a589717ecbc4614ea1af07 /src/plugins/valgrind/memcheckerrorview.cpp
parent5c67b798da7b50368135d77992fe4cc8b59e8f19 (diff)
Icons: Removing several duplicates and variations of the eye_open icon
Change-Id: I598005ac81bd847d3d5e88c3d78a0e945c8026c5 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/valgrind/memcheckerrorview.cpp')
-rw-r--r--src/plugins/valgrind/memcheckerrorview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/valgrind/memcheckerrorview.cpp b/src/plugins/valgrind/memcheckerrorview.cpp
index a15d7731337..19f3b117297 100644
--- a/src/plugins/valgrind/memcheckerrorview.cpp
+++ b/src/plugins/valgrind/memcheckerrorview.cpp
@@ -41,6 +41,8 @@
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
#include <utils/qtcassert.h>
+#include <utils/icon.h>
+#include <utils/theme/theme.h>
#include <QAction>
@@ -55,7 +57,11 @@ MemcheckErrorView::MemcheckErrorView(QWidget *parent)
{
m_suppressAction = new QAction(this);
m_suppressAction->setText(tr("Suppress Error"));
- m_suppressAction->setIcon(QIcon(QLatin1String(":/valgrind/images/eye_crossed.png")));
+ const QIcon icon = Utils::Icon({
+ {QLatin1String(":/core/images/eye_open.png"), Utils::Theme::TextColorNormal},
+ {QLatin1String(":/valgrind/images/suppressoverlay.png"), Utils::Theme::IconsErrorColor}},
+ Utils::Icon::Tint | Utils::Icon::PunchEdges).icon();
+ m_suppressAction->setIcon(icon);
m_suppressAction->setShortcut(QKeySequence(Qt::Key_Delete));
m_suppressAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
connect(m_suppressAction, &QAction::triggered, this, &MemcheckErrorView::suppressError);