forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user