Commit 5c80657c authored by Nicolas Fella's avatar Nicolas Fella Committed by Stefano Crocco
Browse files

[settings/bookmarks] Clean up

Simplify plugin factory code
parent e34fdc9f
......@@ -4,7 +4,6 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kcmbookmarks\")
########### next target ###############
set(kcm_bookmarks_PART_SRCS
main.cpp
bookmarks.cpp)
ki18n_wrap_ui(kcm_bookmarks_PART_SRCS
......
......@@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <KConfigGroup>
#include <kimagecache.h>
K_PLUGIN_FACTORY_DECLARATION(KioConfigFactory)
K_PLUGIN_FACTORY(KioConfigFactory, registerPlugin<BookmarksConfigModule>();)
BookmarksConfigModule::BookmarksConfigModule(QWidget *parent, const QVariantList &)
: KCModule(parent)
......@@ -110,4 +110,4 @@ void BookmarksConfigModule::configChanged()
emit changed(true);
}
//
#include "bookmarks.moc"
......@@ -5,7 +5,6 @@ X-DocPath=kcontrol5/bookmarks/index.html
Icon=bookmarks
X-KDE-Library=kcm_bookmarks
X-KDE-PluginKeyword=bookmarks
Name=Bookmarks
Name[af]=Boekmerke
......
// (c) Torben Weis 1998
// (c) David Faure 1998
/*
* main.cpp for creating the konqueror kio kcm modules
*
* Copyright (C) 2000,2001,2009 Alexander Neundorf <neundorf@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// Qt
#include <QFile>
// KDE
#include <kcmoduleloader.h>
//#include <kcomponentdata.h>
#include <kpluginfactory.h>
// Local
#include "bookmarks.h"
K_PLUGIN_FACTORY(KioConfigFactory,
registerPlugin<BookmarksConfigModule>("bookmarks");
)
#include "main.moc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment