Valgrind plugin: fix for just partial usage of coreplugin/coreconstants.h values

Valgrind plugin CallgrindTool and MemcheckTool modules sometime use
coreplugin/coreconstants.h values for icons (e.g. Core::Constants::ICON_REDO),
and sometime - an own constant is used like ":core/images/prev.png".

This commit is fixing this issue and changing everything to Core::Constants
usage.

Change-Id: I8d6f473a66a3181b03e2193314d17661df1d4cc1
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Denis Mingulov
2012-01-17 13:06:12 +02:00
committed by hjk
parent f77dfaddd1
commit eed531ff9e
2 changed files with 4 additions and 4 deletions

View File

@@ -413,7 +413,7 @@ QWidget *MemcheckTool::createWidgets()
// Go to previous leak.
action = new QAction(this);
action->setDisabled(true);
action->setIcon(QIcon(QLatin1String(":core/images/prev.png")));
action->setIcon(QIcon(QLatin1String(Core::Constants::ICON_PREV)));
action->setToolTip(tr("Go to previous leak."));
connect(action, SIGNAL(triggered(bool)), m_errorView, SLOT(goBack()));
button = new QToolButton;
@@ -424,7 +424,7 @@ QWidget *MemcheckTool::createWidgets()
// Go to next leak.
action = new QAction(this);
action->setDisabled(true);
action->setIcon(QIcon(QLatin1String(":core/images/next.png")));
action->setIcon(QIcon(QLatin1String(Core::Constants::ICON_NEXT)));
action->setToolTip(tr("Go to next leak."));
connect(action, SIGNAL(triggered(bool)), m_errorView, SLOT(goNext()));
button = new QToolButton;