Warning, file /kdevelop/kdevelop/plugins/clang/clangsettings/sessionsettings/sessionsettings.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2015 Sergey Kalinichev <kalinichev.so.0@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #include "sessionsettings.h"
0008 
0009 #include "sessionconfig.h"
0010 #include "ui_sessionsettings.h"
0011 
0012 SessionSettings::SessionSettings(QWidget* parent)
0013     : ConfigPage(nullptr, SessionConfig::self(), parent)
0014     , m_settings(new Ui::SessionSettings)
0015 {
0016     m_settings->setupUi(this);
0017 }
0018 
0019 void SessionSettings::reset()
0020 {
0021      ConfigPage::reset();
0022 
0023     Q_ASSERT(ICore::self()->activeSession());
0024 }
0025 
0026 SessionSettings::~SessionSettings( )
0027 {}
0028 
0029 void SessionSettings::apply()
0030 {
0031      ConfigPage::apply();
0032 }
0033 
0034 QString SessionSettings::name() const
0035 {
0036     return i18nc("@title:tab", "C/C++ Helpers");
0037 }
0038 
0039 QString SessionSettings::fullName() const
0040 {
0041     return i18nc("@title:tab", "Configure C/C++ Helpers");
0042 }
0043 
0044 QIcon SessionSettings::icon() const
0045 {
0046     return QIcon::fromTheme(QStringLiteral("kdevelop"));
0047 }
0048 
0049 KDevelop::ConfigPage::ConfigPageType SessionSettings::configPageType() const
0050 {
0051     return ConfigPage::LanguageConfigPage;
0052 }
0053 
0054 #include "moc_sessionsettings.cpp"