diff --git a/scripting/scriptedeffect.cpp b/scripting/scriptedeffect.cpp
index db6de03981..7f3f6c54ce 100644
--- a/scripting/scriptedeffect.cpp
+++ b/scripting/scriptedeffect.cpp
@@ -27,7 +27,7 @@ along with this program. If not, see .
#endif
// KDE
#include
-#include
+#include
// Qt
#include
#include
@@ -404,7 +404,7 @@ bool ScriptedEffect::init(const QString &effectName, const QString &pathToScript
if (!kconfigXTFile.isNull()) {
KConfigGroup cg = effects->effectConfig(m_effectName);
QFile xmlFile(kconfigXTFile);
- m_config = new Plasma::ConfigLoader(&cg, &xmlFile, this);
+ m_config = new KConfigLoader(cg, &xmlFile, this);
m_config->readConfig();
}
diff --git a/scripting/scriptedeffect.h b/scripting/scriptedeffect.h
index 8db3b6b406..e642829b5a 100644
--- a/scripting/scriptedeffect.h
+++ b/scripting/scriptedeffect.h
@@ -23,13 +23,10 @@ along with this program. If not, see .
#include
+class KConfigLoader;
class QScriptEngine;
class QScriptValue;
-namespace Plasma {
-class ConfigLoader;
-}
-
namespace KWin
{
class ScriptedEffect;
@@ -153,7 +150,7 @@ private:
QString m_scriptFile;
QHash m_shortcutCallbacks;
QHash > m_screenEdgeCallbacks;
- Plasma::ConfigLoader *m_config;
+ KConfigLoader *m_config;
};
}