diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2015-11-24 14:33:54 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-11-25 14:13:06 +0000 |
commit | 5b49a1b39b7fa152480ddd55f406cfac4894c839 (patch) | |
tree | 3ab49db493fde6772f8dc64a1e9eab8d2a8cb0e5 | |
parent | c6a377f834a011f5ec8d32fb59f3207c28fb306d (diff) | |
download | qt-creator-5b49a1b39b7fa152480ddd55f406cfac4894c839.tar.gz |
Use the new Utils::Icon class
Change-Id: I936a9cf3906ac23c529b3ee8ba80b4f11b476ada
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
-rw-r--r-- | plugins/clangstaticanalyzer/clangstaticanalyzertool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/clangstaticanalyzer/clangstaticanalyzertool.cpp b/plugins/clangstaticanalyzer/clangstaticanalyzertool.cpp index e53a770a08..caa9f7b6c0 100644 --- a/plugins/clangstaticanalyzer/clangstaticanalyzertool.cpp +++ b/plugins/clangstaticanalyzer/clangstaticanalyzertool.cpp @@ -26,6 +26,7 @@ #include <analyzerbase/analyzermanager.h> #include <coreplugin/coreconstants.h> +#include <coreplugin/coreicons.h> #include <coreplugin/icore.h> #include <cpptools/cppmodelmanager.h> #include <projectexplorer/buildconfiguration.h> @@ -130,7 +131,7 @@ QWidget *ClangStaticAnalyzerTool::createWidgets() // Go to previous diagnostic action = new QAction(this); action->setDisabled(true); - action->setIcon(QIcon(QLatin1String(Core::Constants::ICON_PREV))); + action->setIcon(Core::Icons::PREV.icon()); action->setToolTip(tr("Go to previous bug.")); connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goBack); button = new QToolButton; @@ -141,7 +142,7 @@ QWidget *ClangStaticAnalyzerTool::createWidgets() // Go to next diagnostic action = new QAction(this); action->setDisabled(true); - action->setIcon(QIcon(QLatin1String(Core::Constants::ICON_NEXT))); + action->setIcon(Core::Icons::NEXT.icon()); action->setToolTip(tr("Go to next bug.")); connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext); button = new QToolButton; |