File indexing completed on 2024-06-16 04:33:42

0001 /*
0002     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 #include "k3bpluginconfigwidget.h"
0006 #include "k3bcore.h"
0007 
0008 #include <KConfigGroup>
0009 #include <KSharedConfig>
0010 
0011 
0012 // we only use the plugins when loaded into the main application. Thus they do not need
0013 // their own KComponentData
0014 K3b::PluginConfigWidget::PluginConfigWidget(QObject *parent, const KPluginMetaData& metaData, const QVariantList& args )
0015 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
0016     : KCModule( qobject_cast<QWidget *>(parent), args )
0017 {
0018     Q_UNUSED(metaData);
0019 }
0020 #else
0021     : KCModule( parent, metaData )
0022 {
0023     Q_UNUSED(args);
0024 }
0025 #endif
0026 
0027 K3b::PluginConfigWidget::~PluginConfigWidget()
0028 {
0029 }
0030 
0031 #if 0
0032 void K3b::PluginConfigWidget::load()
0033 {
0034 //    loadConfig( KSharedConfig::openConfig()->group() );
0035 }
0036 
0037 
0038 void K3b::PluginConfigWidget::defaults()
0039 {
0040     KConfigGroup defaultGroup;
0041     loadConfig( defaultGroup );
0042 }
0043 
0044 
0045 void K3b::PluginConfigWidget::save()
0046 {
0047 //    saveConfig( KSharedConfig::openConfig()->group() );
0048 }
0049 
0050 
0051 void K3b::PluginConfigWidget::loadConfig( const KConfigGroup& )
0052 {
0053 }
0054 
0055 
0056 void K3b::PluginConfigWidget::saveConfig( KConfigGroup )
0057 {
0058 }
0059 #endif
0060 
0061 #include "moc_k3bpluginconfigwidget.cpp"