From b46779dcc5e66028ae0d19a8482d0240c9e7a132 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 15 Jan 2011 21:42:09 +0000 Subject: [PATCH] prepend known to the method name, makes it more consistent with the rest of the API huzzah for documentation showing up warts :) svn path=/trunk/KDE/kdebase/workspace/; revision=1214676 --- scriptengine.cpp | 4 ++-- scriptengine.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,