diff --git a/kresources/kcmkresources.cpp b/kresources/kcmkresources.cpp index dafa86777..2ee15d840 100644 --- a/kresources/kcmkresources.cpp +++ b/kresources/kcmkresources.cpp @@ -1,70 +1,70 @@ /* This file is part of libkresources. Copyright (c) 2003 Tobias Koenig This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "kcmkresources.h" #include #include #include #include #include #include "configpage.h" -K_PLUGIN_FACTORY(ResourcesFactory, registerPlugin();) -K_EXPORT_PLUGIN(ResourcesFactory("kcmkresources")) +K_PLUGIN_FACTORY( ResourcesFactory, registerPlugin(); ) +K_EXPORT_PLUGIN( ResourcesFactory( "kcmkresources" ) ) KCMKResources::KCMKResources( QWidget *parent, const QVariantList &l ) : KCModule( ResourcesFactory::componentData(), parent, QVariantList() ) { Q_UNUSED( l ); QVBoxLayout *layout = new QVBoxLayout( this ); mConfigPage = new KRES::ConfigPage( this ); layout->addWidget( mConfigPage ); connect( mConfigPage, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) ); setButtons( Help | Apply ); KAboutData *about = new KAboutData( I18N_NOOP( "kcmkresources" ), 0, ki18n( "KDE Resources configuration module" ), 0, KLocalizedString(), KAboutData::License_GPL, ki18n( "(c) 2003 Tobias Koenig" ) ); about->addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "tokoe@kde.org" ); setAboutData( about ); } void KCMKResources::load() { mConfigPage->load(); } void KCMKResources::save() { mConfigPage->save(); } void KCMKResources::defaults() { mConfigPage->defaults(); } #include "kcmkresources.moc" diff --git a/mailtransport/configmodule.cpp b/mailtransport/configmodule.cpp index 28de2092b..f7a3ef7e4 100644 --- a/mailtransport/configmodule.cpp +++ b/mailtransport/configmodule.cpp @@ -1,40 +1,40 @@ /* Copyright (c) 2007 Volker Krause This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "configmodule.h" #include "transportmanagementwidget.h" #include #include #include using namespace MailTransport; -K_PLUGIN_FACTORY(MailTransportConfigFactory, registerPlugin();) -K_EXPORT_PLUGIN(MailTransportConfigFactory("mailtrasnport")) +K_PLUGIN_FACTORY( MailTransportConfigFactory, registerPlugin(); ) +K_EXPORT_PLUGIN( MailTransportConfigFactory( "mailtrasnport" ) ) ConfigModule::ConfigModule( QWidget * parent, const QVariantList & args ) : KCModule( MailTransportConfigFactory::componentData(), parent, args ) { setButtons( 0 ); QVBoxLayout *l = new QVBoxLayout( this ); l->setMargin( 0 ); TransportManagementWidget *tmw = new TransportManagementWidget( this ); l->addWidget( tmw ); }