slightly more sensicle; no difference in behaviour, though
svn path=/trunk/KDE/kdebase/workspace/; revision=1152633
This commit is contained in:
parent
6f4dc1cc4f
commit
26004a8062
@ -197,19 +197,19 @@ QScriptValue ScriptEngine::activities(QScriptContext *context, QScriptEngine *en
|
|||||||
{
|
{
|
||||||
Q_UNUSED(context)
|
Q_UNUSED(context)
|
||||||
|
|
||||||
QScriptValue panels = engine->newArray();
|
QScriptValue containments = engine->newArray();
|
||||||
ScriptEngine *env = envFor(engine);
|
ScriptEngine *env = envFor(engine);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
foreach (Plasma::Containment *c, env->m_corona->containments()) {
|
foreach (Plasma::Containment *c, env->m_corona->containments()) {
|
||||||
if (!isPanel(c)) {
|
if (!isPanel(c)) {
|
||||||
panels.setProperty(count, env->wrap(c));
|
containments.setProperty(count, env->wrap(c));
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
panels.setProperty("length", count);
|
containments.setProperty("length", count);
|
||||||
return panels;
|
return containments;
|
||||||
}
|
}
|
||||||
|
|
||||||
QScriptValue ScriptEngine::panels(QScriptContext *context, QScriptEngine *engine)
|
QScriptValue ScriptEngine::panels(QScriptContext *context, QScriptEngine *engine)
|
||||||
|
Loading…
Reference in New Issue
Block a user