[kwin/scripting] Port from Plasma::ConfigLoader to KConfigLoader
REVIEW: 114492
This commit is contained in:
parent
1d7ee61741
commit
ba2ff9757d
2 changed files with 4 additions and 7 deletions
|
@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#endif
|
||||
// KDE
|
||||
#include <KDE/KConfigGroup>
|
||||
#include <Plasma/ConfigLoader>
|
||||
#include <kconfigloader.h>
|
||||
// Qt
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -23,13 +23,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include <kwinanimationeffect.h>
|
||||
|
||||
class KConfigLoader;
|
||||
class QScriptEngine;
|
||||
class QScriptValue;
|
||||
|
||||
namespace Plasma {
|
||||
class ConfigLoader;
|
||||
}
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
class ScriptedEffect;
|
||||
|
@ -153,7 +150,7 @@ private:
|
|||
QString m_scriptFile;
|
||||
QHash<QAction*, QScriptValue> m_shortcutCallbacks;
|
||||
QHash<int, QList<QScriptValue> > m_screenEdgeCallbacks;
|
||||
Plasma::ConfigLoader *m_config;
|
||||
KConfigLoader *m_config;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue