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)
|
||||
|
||||
QScriptValue panels = engine->newArray();
|
||||
QScriptValue containments = engine->newArray();
|
||||
ScriptEngine *env = envFor(engine);
|
||||
int count = 0;
|
||||
|
||||
foreach (Plasma::Containment *c, env->m_corona->containments()) {
|
||||
if (!isPanel(c)) {
|
||||
panels.setProperty(count, env->wrap(c));
|
||||
containments.setProperty(count, env->wrap(c));
|
||||
++count;
|
||||
}
|
||||
}
|
||||
|
||||
panels.setProperty("length", count);
|
||||
return panels;
|
||||
containments.setProperty("length", count);
|
||||
return containments;
|
||||
}
|
||||
|
||||
QScriptValue ScriptEngine::panels(QScriptContext *context, QScriptEngine *engine)
|
||||
|
Loading…
Reference in New Issue
Block a user