summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-10-19 16:14:29 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2018-10-22 08:36:12 +0000
commit0e2e724dd5c03651db64432312dafe806172d5c1 (patch)
tree3489908fc7f5448e0992a05863dcfd3e28eba4b6 /src/plugins/cppcheck
parent1cad74a7d426c0eeac53cd838cdc89c9788f84aa (diff)
downloadqt-creator-0e2e724dd5c03651db64432312dafe806172d5c1.tar.gz
CppCheck: Add a category text and icon to the Option page
All analyzer plugins need to set these for the case that they are the only loaded analyzer plugin. Task-number: QTCREATORBUG-21354 Change-Id: Ibb889ef2f4e2c10ebc9927301607b7539066b5ea Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r--src/plugins/cppcheck/cppcheckoptions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cppcheck/cppcheckoptions.cpp b/src/plugins/cppcheck/cppcheckoptions.cpp
index de81af7535..6e665417d0 100644
--- a/src/plugins/cppcheck/cppcheckoptions.cpp
+++ b/src/plugins/cppcheck/cppcheckoptions.cpp
@@ -36,6 +36,8 @@
#include <coreplugin/icore.h>
#include <coreplugin/variablechooser.h>
+#include <debugger/analyzer/analyzericons.h>
+
#include <QCheckBox>
#include <QDir>
#include <QFormLayout>
@@ -164,6 +166,8 @@ CppcheckOptionsPage::CppcheckOptionsPage(CppcheckTool &tool, CppcheckTrigger &tr
setId(Constants::OPTIONS_PAGE_ID);
setDisplayName(tr("Cppcheck"));
setCategory("T.Analyzer");
+ setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
+ setCategoryIcon(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
CppcheckOptions options;
if (Utils::HostOsInfo::isAnyUnixHost()) {