forked from qt-creator/qt-creator
Use the new Utils::Icon class
Change-Id: I936a9cf3906ac23c529b3ee8ba80b4f11b476ada Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Eike Ziller
parent
c6a377f834
commit
5b49a1b39b
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <analyzerbase/analyzermanager.h>
|
#include <analyzerbase/analyzermanager.h>
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
|
#include <coreplugin/coreicons.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <cpptools/cppmodelmanager.h>
|
#include <cpptools/cppmodelmanager.h>
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
#include <projectexplorer/buildconfiguration.h>
|
||||||
@@ -130,7 +131,7 @@ QWidget *ClangStaticAnalyzerTool::createWidgets()
|
|||||||
// Go to previous diagnostic
|
// Go to previous diagnostic
|
||||||
action = new QAction(this);
|
action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(QIcon(QLatin1String(Core::Constants::ICON_PREV)));
|
action->setIcon(Core::Icons::PREV.icon());
|
||||||
action->setToolTip(tr("Go to previous bug."));
|
action->setToolTip(tr("Go to previous bug."));
|
||||||
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goBack);
|
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goBack);
|
||||||
button = new QToolButton;
|
button = new QToolButton;
|
||||||
@@ -141,7 +142,7 @@ QWidget *ClangStaticAnalyzerTool::createWidgets()
|
|||||||
// Go to next diagnostic
|
// Go to next diagnostic
|
||||||
action = new QAction(this);
|
action = new QAction(this);
|
||||||
action->setDisabled(true);
|
action->setDisabled(true);
|
||||||
action->setIcon(QIcon(QLatin1String(Core::Constants::ICON_NEXT)));
|
action->setIcon(Core::Icons::NEXT.icon());
|
||||||
action->setToolTip(tr("Go to next bug."));
|
action->setToolTip(tr("Go to next bug."));
|
||||||
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext);
|
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext);
|
||||||
button = new QToolButton;
|
button = new QToolButton;
|
||||||
|
Reference in New Issue
Block a user