File indexing completed on 2024-05-12 04:57:43

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2010-2012 Andrey Esin <gmlastik@gmail.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0007 */
0008 
0009 #include "is_gd_config.h"
0010 
0011 #include <QVBoxLayout>
0012 
0013 #include <KAboutData>
0014 #include <KPluginFactory>
0015 
0016 #include "notifymanager.h"
0017 
0018 #include "is_gd_settings.h"
0019 
0020 K_PLUGIN_CLASS_WITH_JSON(Is_gd_Config, "choqok_is_gd_config.json")
0021 
0022 Is_gd_Config::Is_gd_Config(QWidget *parent, const QVariantList &):
0023     KCModule(parent)
0024 {
0025     QVBoxLayout *layout = new QVBoxLayout(this);
0026     QWidget *wd = new QWidget(this);
0027     wd->setObjectName(QLatin1String("mIsGdCtl"));
0028     wd->setMinimumWidth(200);
0029     ui.setupUi(wd);
0030     addConfig(Is_gd_Settings::self(), wd);
0031     layout->addWidget(wd);
0032 }
0033 
0034 Is_gd_Config::~Is_gd_Config()
0035 {
0036 }
0037 
0038 void Is_gd_Config::load()
0039 {
0040     KCModule::load();
0041 }
0042 
0043 void Is_gd_Config::save()
0044 {
0045     KCModule::save();
0046 }
0047 
0048 void Is_gd_Config::emitChanged()
0049 {
0050     Q_EMIT changed(true);
0051 }
0052 
0053 #include "is_gd_config.moc"
0054 #include "moc_is_gd_config.cpp"