ClangTools: Move OptionsPage to the usual place

Change-Id: Ic70274a7066c1335ae0263f57d29b1c543b94ffe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-02-03 09:18:49 +01:00
parent 1a86b68809
commit 019d16fad7
3 changed files with 22 additions and 19 deletions

View File

@@ -36,8 +36,6 @@
#include "clangtoolsunittests.h"
#endif
#include <debugger/analyzer/analyzericons.h>
#include <utils/qtcassert.h>
#include <coreplugin/icore.h>
@@ -46,7 +44,6 @@
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/dialogs/ioptionspage.h>
#include <cpptools/cpptoolsconstants.h>
#include <cpptools/cppmodelmanager.h>
@@ -74,22 +71,6 @@ ProjectPanelFactory *projectPanelFactory()
return m_projectPanelFactoryInstance;
}
class ClangToolsOptionsPage : public IOptionsPage
{
public:
ClangToolsOptionsPage()
{
setId(Constants::SETTINGS_PAGE_ID);
setDisplayName(QCoreApplication::translate(
"ClangTools::Internal::ClangToolsOptionsPage",
"Clang Tools"));
setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
setWidgetCreator([] { return new SettingsWidget; });
}
};
class ClangToolsPluginPrivate
{
public: