Port to new api

svn path=/trunk/KDE/kdebase/workspace/; revision=677432
This commit is contained in:
Laurent Montel 2007-06-19 06:41:55 +00:00
parent cdb2d046c3
commit 3ce597e439
2 changed files with 7 additions and 2 deletions

View file

@ -46,7 +46,7 @@ KWinEffectsConfig::KWinEffectsConfig(QWidget *parent, const QStringList &)
connect(mPluginSelector, SIGNAL(changed(bool)), this, SLOT(changed()));
connect(mPluginSelector, SIGNAL(configCommitted(const QByteArray&)),
KSettings::Dispatcher::self(), SLOT(reparseConfiguration(const QByteArray&)));
this, SLOT(reparseConfiguration(const QByteArray&)));
// Find all .desktop files of the effects
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
@ -73,6 +73,11 @@ KWinEffectsConfig::~KWinEffectsConfig()
{
}
void KWinEffectsConfig::reparseConfiguration(const QByteArray&conf)
{
KSettings::Dispatcher::reparseConfiguration(conf);
}
void KWinEffectsConfig::load()
{
kDebug() << k_funcinfo << endl;

View file

@ -36,7 +36,7 @@ class KWinEffectsConfig : public KCModule
virtual void load();
virtual void save();
virtual void defaults();
void reparseConfiguration(const QByteArray&conf);
private:
KSharedConfigPtr mKWinConfig;