platformVersion

svn path=/trunk/KDE/kdebase/workspace/; revision=1119865
This commit is contained in:
Aaron J. Seigo 2010-04-27 20:55:51 +00:00 committed by Marco Martin
parent 79f055689d
commit ae70c2fce5

View File

@ -23,6 +23,7 @@
#include <QFileInfo>
#include <QScriptValueIterator>
#include <kdeversion.h>
#include <KServiceTypeTrader>
#include <KShell>
#include <KStandardDirs>
@ -364,6 +365,7 @@ void ScriptEngine::setupEngine()
m_scriptSelf.setProperty("loadTemplate", newFunction(ScriptEngine::loadTemplate));
m_scriptSelf.setProperty("applicationVersion", KGlobal::mainComponent().aboutData()->version(), QScriptValue::ReadOnly | QScriptValue::Undeletable);
m_scriptSelf.setProperty("scriptingVersion", newVariant(2), QScriptValue::ReadOnly | QScriptValue::Undeletable);
m_scriptSelf.setProperty("platformVersion", KDE::versionString(), QScriptValue::ReadOnly | QScriptValue::Undeletable);
setGlobalObject(m_scriptSelf);
}