diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-10-19 16:14:29 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-10-22 08:36:12 +0000 |
commit | 0e2e724dd5c03651db64432312dafe806172d5c1 (patch) | |
tree | 3489908fc7f5448e0992a05863dcfd3e28eba4b6 /src/plugins/cppcheck | |
parent | 1cad74a7d426c0eeac53cd838cdc89c9788f84aa (diff) | |
download | qt-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.cpp | 4 |
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()) { |