diff --git a/src/config/clangtidypreferences.cpp b/src/config/clangtidypreferences.cpp index 658c26eeca..32e9e9bdb7 100644 --- a/src/config/clangtidypreferences.cpp +++ b/src/config/clangtidypreferences.cpp @@ -1,72 +1,72 @@ /* * This file is part of KDevelop * * Copyright 2016 Carlos Nihelton * * 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ #include "config/clangtidypreferences.h" #include "clangtidyconfig.h" #include "config/configgroup.h" #include "ui_clangtidysettings.h" #include using KDevelop::IPlugin; using ClangTidy::ConfigGroup; using KDevelop::ConfigPage; ClangtidyPreferences::ClangtidyPreferences(IPlugin* plugin, QWidget* parent) : ConfigPage(plugin, ClangtidySettings::self(), parent) { QVBoxLayout* layout = new QVBoxLayout(this); QWidget* widget = new QWidget(this); ui = new Ui::ClangtidySettings(); ui->setupUi(widget); layout->addWidget(widget); } ClangtidyPreferences::~ClangtidyPreferences() { delete ui; } ConfigPage::ConfigPageType ClangtidyPreferences::configPageType() const { return ConfigPage::AnalyzerConfigPage; } QString ClangtidyPreferences::name() const { - return i18n("clang-tidy"); + return i18n("Clang-Tidy"); } QString ClangtidyPreferences::fullName() const { return i18n("Configure clang-tidy settings"); } QIcon ClangtidyPreferences::icon() const { return QIcon::fromTheme(QStringLiteral("dialog-ok")); } void ClangtidyPreferences::apply() { ConfigGroup configGroup = KSharedConfig::openConfig()->group("Clangtidy"); configGroup.writeEntry(ConfigGroup::ExecutablePath, ui->kcfg_clangtidyPath->text()); }