diff --git a/scriptengine.cpp b/scriptengine.cpp index 19aea5fa1..849574e74 100644 --- a/scriptengine.cpp +++ b/scriptengine.cpp @@ -512,7 +512,7 @@ QScriptValue ScriptEngine::userDataPath(QScriptContext *context, QScriptEngine * return QString(); } -QScriptValue ScriptEngine::wallpaperPlugins(QScriptContext *context, QScriptEngine *engine) +QScriptValue ScriptEngine::knownWallpaperPlugins(QScriptContext *context, QScriptEngine *engine) { Q_UNUSED(engine) @@ -568,7 +568,7 @@ void ScriptEngine::setupEngine() m_scriptSelf.setProperty("defaultApplication", newFunction(ScriptEngine::defaultApplication)); m_scriptSelf.setProperty("userDataPath", newFunction(ScriptEngine::userDataPath)); m_scriptSelf.setProperty("applicationPath", newFunction(ScriptEngine::applicationPath)); - m_scriptSelf.setProperty("wallpaperPlugins", newFunction(ScriptEngine::wallpaperPlugins)); + m_scriptSelf.setProperty("knownWallpaperPlugins", newFunction(ScriptEngine::knownWallpaperPlugins)); setGlobalObject(m_scriptSelf); } diff --git a/scriptengine.h b/scriptengine.h index 57394d221..69277cba9 100644 --- a/scriptengine.h +++ b/scriptengine.h @@ -80,7 +80,7 @@ private: static QScriptValue defaultApplication(QScriptContext *context, QScriptEngine *engine); static QScriptValue applicationPath(QScriptContext *context, QScriptEngine *engine); static QScriptValue userDataPath(QScriptContext *context, QScriptEngine *engine); - static QScriptValue wallpaperPlugins(QScriptContext *context, QScriptEngine *engine); + static QScriptValue knownWallpaperPlugins(QScriptContext *context, QScriptEngine *engine); // helpers static QScriptValue createContainment(const QString &type, const QString &defautPlugin,