File indexing completed on 2024-04-28 05:10:44
0001 /* 0002 This file is part of Akregator. 0003 SPDX-FileCopyrightText: 2008 Frank Osterfeld <osterfeld@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0006 */ 0007 0008 #include "akregator_config_advanced.h" 0009 #include "akregatorconfig.h" 0010 0011 #include "settings_advanced.h" 0012 0013 #include <KAboutData> 0014 #include <KLocalizedString> 0015 #include <KPluginFactory> 0016 0017 #include <QVBoxLayout> 0018 0019 using namespace Akregator; 0020 0021 K_PLUGIN_CLASS_WITH_JSON(KCMAkregatorAdvancedConfig, "akregator_config_advanced.json") 0022 0023 KCMAkregatorAdvancedConfig::KCMAkregatorAdvancedConfig(QObject *parent, const KPluginMetaData &data) 0024 : KCModule(parent, data) 0025 , m_widget(new SettingsAdvanced(widget())) 0026 { 0027 auto layout = new QVBoxLayout(widget()); 0028 layout->addWidget(m_widget); 0029 addConfig(Settings::self(), m_widget); 0030 } 0031 0032 void KCMAkregatorAdvancedConfig::load() 0033 { 0034 KCModule::load(); 0035 } 0036 0037 void KCMAkregatorAdvancedConfig::save() 0038 { 0039 KCModule::save(); 0040 } 0041 0042 #include "akregator_config_advanced.moc" 0043 0044 #include "moc_akregator_config_advanced.cpp"