up the version number
svn path=/trunk/KDE/kdebase/workspace/; revision=1158014
This commit is contained in:
parent
d122d4c88b
commit
c99ce29222
@ -342,7 +342,7 @@ void ScriptEngine::setupEngine()
|
|||||||
m_scriptSelf.setProperty("loadTemplate", newFunction(ScriptEngine::loadTemplate));
|
m_scriptSelf.setProperty("loadTemplate", newFunction(ScriptEngine::loadTemplate));
|
||||||
m_scriptSelf.setProperty("applicationVersion", KGlobal::mainComponent().aboutData()->version(),
|
m_scriptSelf.setProperty("applicationVersion", KGlobal::mainComponent().aboutData()->version(),
|
||||||
QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable);
|
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);
|
QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable);
|
||||||
m_scriptSelf.setProperty("platformVersion", KDE::versionString(),
|
m_scriptSelf.setProperty("platformVersion", KDE::versionString(),
|
||||||
QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable);
|
QScriptValue::PropertyGetter | QScriptValue::ReadOnly | QScriptValue::Undeletable);
|
||||||
|
@ -87,6 +87,8 @@ private Q_SLOTS:
|
|||||||
private:
|
private:
|
||||||
Plasma::Corona *m_corona;
|
Plasma::Corona *m_corona;
|
||||||
QScriptValue m_scriptSelf;
|
QScriptValue m_scriptSelf;
|
||||||
|
|
||||||
|
static const int PLASMA_DESKTOP_SCRIPTING_VERSION = 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user