diff --git a/config/cppcheckpreferences.cpp b/config/cppcheckpreferences.cpp index 7075ba8..ff08343 100644 --- a/config/cppcheckpreferences.cpp +++ b/config/cppcheckpreferences.cpp @@ -1,55 +1,59 @@ /* * Copyright 2015 Laszlo Kis-Adam * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "cppcheckpreferences.h" #include #include "cppcheckconfig.h" #include "ui_cppchecksettings.h" using namespace KDevelop; CppCheckPreferences::CppCheckPreferences(IPlugin *plugin, QWidget* parent) : ConfigPage(plugin, CppCheckSettings::self(), parent) { QVBoxLayout* layout = new QVBoxLayout(this); QWidget* widget = new QWidget(this); Ui::CppCheckSettings ui; ui.setupUi(widget); layout->addWidget(widget); } CppCheckPreferences::~CppCheckPreferences() { } +ConfigPage::ConfigPageType CppCheckPreferences::configPageType() const +{ + return ConfigPage::AnalyzerConfigPage; +} QString CppCheckPreferences::name() const { return i18n("Cppcheck"); } QString CppCheckPreferences::fullName() const { return i18n("Configure Cppcheck settings"); } QIcon CppCheckPreferences::icon() const { return QIcon::fromTheme(QStringLiteral("kdevelop")); } diff --git a/config/cppcheckpreferences.h b/config/cppcheckpreferences.h index cfe41ac..feef522 100644 --- a/config/cppcheckpreferences.h +++ b/config/cppcheckpreferences.h @@ -1,36 +1,37 @@ /* * Copyright 2015 Laszlo Kis-Adam * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CPPCHECKPREFERENCES_H #define CPPCHECKPREFERENCES_H #include class CppCheckSettings; class CppCheckPreferences: public KDevelop::ConfigPage { Q_OBJECT public: explicit CppCheckPreferences(KDevelop::IPlugin *plugin = nullptr, QWidget* parent = nullptr); ~CppCheckPreferences() override; + ConfigPage::ConfigPageType configPageType() const override; QString name() const override; QString fullName() const override; QIcon icon() const override; }; #endif