diff --git a/scriptengine.cpp b/scriptengine.cpp index e67aafd6b..c0755cb8a 100644 --- a/scriptengine.cpp +++ b/scriptengine.cpp @@ -342,7 +342,7 @@ void ScriptEngine::setupEngine() m_scriptSelf.setProperty("loadTemplate", newFunction(ScriptEngine::loadTemplate)); m_scriptSelf.setProperty("applicationVersion", KGlobal::mainComponent().aboutData()->version(), QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable); - m_scriptSelf.setProperty("scriptingVersion", newVariant(2), + m_scriptSelf.setProperty("scriptingVersion", newVariant(PLASMA_DESKTOP_SCRIPTING_VERSION), QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable); m_scriptSelf.setProperty("platformVersion", KDE::versionString(), QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable); diff --git a/scriptengine.h b/scriptengine.h index a868a1545..363010279 100644 --- a/scriptengine.h +++ b/scriptengine.h @@ -87,6 +87,8 @@ private Q_SLOTS: private: Plasma::Corona *m_corona; QScriptValue m_scriptSelf; + + static const int PLASMA_DESKTOP_SCRIPTING_VERSION = 3; }; }