File indexing completed on 2024-04-28 04:55:52

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2009-2010 Mehrdad Momeny <mehrdad.momeny@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 "untinyconfig.h"
0010 #include <KPluginFactory>
0011 #include <klocale.h>
0012 #include <qlayout.h>
0013 #include <untinysettings.h>
0014 #include <QVBoxLayout>
0015 
0016 K_PLUGIN_CLASS_WITH_JSON(UnTinyConfig, "choqok_untiny.json")
0017 
0018 UnTinyConfig::UnTinyConfig(QWidget* parent, const QVariantList& args):
0019         KCModule( UnTinyConfigFactory::componentData(), parent, args)
0020 {
0021     QVBoxLayout *layout = new QVBoxLayout(this);
0022     QWidget *wd = new QWidget(this);
0023     wd->setObjectName("mUnTinyCtl");
0024     ui.setupUi(wd);
0025     addConfig( UnTinySettings::self(), wd );
0026     layout->addWidget(wd);
0027     setButtons(KCModule::Apply | KCModule::Default);
0028 }
0029 
0030 UnTinyConfig::~UnTinyConfig()
0031 {
0032 
0033 }
0034 
0035 void UnTinyConfig::defaults()
0036 {
0037     KCModule::defaults();
0038 }
0039 
0040 void UnTinyConfig::load()
0041 {
0042     KCModule::load();
0043 }
0044 
0045 void UnTinyConfig::save()
0046 {
0047     KCModule::save();
0048 }
0049 
0050 void UnTinyConfig::emitChanged()
0051 {
0052     Q_EMIT changed(true);
0053 }
0054 
0055 #include "moc_untinyconfig.cpp"
0056 #include "untinyconfig.moc"