up the version number

svn path=/trunk/KDE/kdebase/workspace/; revision=1158014
This commit is contained in:
Aaron J. Seigo 2010-08-01 22:14:16 +00:00 committed by Marco Martin
parent d122d4c88b
commit c99ce29222
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -87,6 +87,8 @@ private Q_SLOTS:
private:
Plasma::Corona *m_corona;
QScriptValue m_scriptSelf;
static const int PLASMA_DESKTOP_SCRIPTING_VERSION = 3;
};
}