forked from qt-creator/qt-creator
Icons: Removing several duplicates and variations of the eye_open icon
Change-Id: I598005ac81bd847d3d5e88c3d78a0e945c8026c5 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 731 B |
BIN
src/plugins/valgrind/images/suppressoverlay.png
Normal file
BIN
src/plugins/valgrind/images/suppressoverlay.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 135 B |
BIN
src/plugins/valgrind/images/suppressoverlay@2x.png
Normal file
BIN
src/plugins/valgrind/images/suppressoverlay@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 260 B |
@@ -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);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/valgrind">
|
||||
<file>images/eye_crossed.png</file>
|
||||
<file>images/suppressoverlay.png</file>
|
||||
<file>images/suppressoverlay@2x.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Reference in New Issue
Block a user