port to KPluginFactory
svn path=/trunk/KDE/kdebase/workspace/; revision=705731
This commit is contained in:
parent
cec2557b3d
commit
4a629bebe9
3 changed files with 8 additions and 12 deletions
|
@ -7,7 +7,6 @@ ServiceTypes=KCModule
|
|||
DocPath=kcontrol/kwincompositing/index.html
|
||||
|
||||
X-KDE-Library=kcm_kwincompositing
|
||||
X-KDE-FactoryName=kcm_kwincompositing
|
||||
X-KDE-ParentApp=kcontrol
|
||||
|
||||
Name=Desktop Effects
|
||||
|
|
|
@ -12,7 +12,6 @@ License. See the file "COPYING" for the exact licensing terms.
|
|||
|
||||
#include "advanced.h"
|
||||
|
||||
#include <kgenericfactory.h>
|
||||
#include <kaboutdata.h>
|
||||
#include <kconfig.h>
|
||||
#include <kconfiggroup.h>
|
||||
|
@ -20,19 +19,19 @@ License. See the file "COPYING" for the exact licensing terms.
|
|||
#include <ksettings/dispatcher.h>
|
||||
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <KPluginFactory>
|
||||
#include <KPluginLoader>
|
||||
|
||||
|
||||
|
||||
|
||||
typedef KGenericFactory<KWin::KWinCompositingConfig> KWinCompositingConfigFactory;
|
||||
K_EXPORT_COMPONENT_FACTORY( kcm_kwincompositing, KWinCompositingConfigFactory("kcmkwincompositing"))
|
||||
|
||||
K_PLUGIN_FACTORY(KWinCompositingConfigFactory,
|
||||
registerPlugin<KWin::KWinCompositingConfig>();
|
||||
)
|
||||
K_EXPORT_PLUGIN(KWinCompositingConfigFactory("kcmkwincompositing"))
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
||||
|
||||
KWinCompositingConfig::KWinCompositingConfig(QWidget *parent, const QStringList &)
|
||||
KWinCompositingConfig::KWinCompositingConfig(QWidget *parent, const QVariantList &)
|
||||
: KCModule( KWinCompositingConfigFactory::componentData(), parent),
|
||||
mKWinConfig(KSharedConfig::openConfig("kwinrc"))
|
||||
{
|
||||
|
|
|
@ -12,9 +12,7 @@ License. See the file "COPYING" for the exact licensing terms.
|
|||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
#define KDE3_SUPPORT
|
||||
#include <kcmodule.h>
|
||||
#undef KDE3_SUPPORT
|
||||
|
||||
#include <ksharedconfig.h>
|
||||
|
||||
|
@ -29,7 +27,7 @@ class KWinCompositingConfig : public KCModule
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
KWinCompositingConfig(QWidget *parent, const QStringList &args);
|
||||
KWinCompositingConfig(QWidget *parent, const QVariantList &args);
|
||||
virtual ~KWinCompositingConfig();
|
||||
|
||||
virtual QString quickHelp() const;
|
||||
|
|
Loading…
Reference in a new issue