diff --git a/kcmkwin/kwinrules/kcm.cpp b/kcmkwin/kwinrules/kcm.cpp index 69e07daf8f..832f1cb5a1 100644 --- a/kcmkwin/kwinrules/kcm.cpp +++ b/kcmkwin/kwinrules/kcm.cpp @@ -19,7 +19,6 @@ #include "kcm.h" #include -#include #include //Added by qt3to4: #include @@ -29,14 +28,18 @@ #include #include "ruleslist.h" +#include +#include -typedef KGenericFactory KCMRulesFactory; -K_EXPORT_COMPONENT_FACTORY(kwinrules, KCMRulesFactory("kcmkwinrules")) +K_PLUGIN_FACTORY(KCMRulesFactory, + registerPlugin(); + ) +K_EXPORT_PLUGIN(KCMRulesFactory("kcmkwinrules")) namespace KWin { -KCMRules::KCMRules( QWidget *parent, const QStringList & ) +KCMRules::KCMRules( QWidget *parent, const QVariantList & ) : KCModule( KCMRulesFactory::componentData(), parent ) , config( "kwinrulesrc" ) { diff --git a/kcmkwin/kwinrules/kcm.h b/kcmkwin/kwinrules/kcm.h index d9f1a36814..24a1d26873 100644 --- a/kcmkwin/kwinrules/kcm.h +++ b/kcmkwin/kwinrules/kcm.h @@ -20,13 +20,10 @@ #ifndef __KCM_H__ #define __KCM_H__ -#define KDE3_SUPPORT #include -#undef KDE3_SUPPORT #include class KConfig; -class QStringList; namespace KWin { @@ -38,7 +35,7 @@ class KCMRules { Q_OBJECT public: - KCMRules( QWidget *parent, const QStringList &args ); + KCMRules( QWidget *parent, const QVariantList &args ); virtual void load(); virtual void save(); virtual void defaults(); diff --git a/kcmkwin/kwinrules/kwinrules.desktop b/kcmkwin/kwinrules/kwinrules.desktop index 0e4490ca28..40f7ca3d0b 100644 --- a/kcmkwin/kwinrules/kwinrules.desktop +++ b/kcmkwin/kwinrules/kwinrules.desktop @@ -7,7 +7,6 @@ ServiceTypes=KCModule DocPath=kcontrol/windowmanagement/index.html X-KDE-Library=kcm_kwinrules -X-KDE-FactoryName=kwinrules X-KDE-ParentApp=kcontrol Name=Window-Specific Settings