platformVersion
svn path=/trunk/KDE/kdebase/workspace/; revision=1119865
This commit is contained in:
parent
79f055689d
commit
ae70c2fce5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user