QML JS Debugger: Hides signals/slot/method

Skip all signals and slot, there is too many of them,
and it is not usefull in the debugger.
This commit is contained in:
Olivier Goffart
2010-07-22 18:21:01 +02:00
parent a84cf3ebb5
commit f5249f0627

View File

@@ -125,6 +125,11 @@ static QList<JSAgentWatchData> expandObject(const QScriptValue &object)
it.next();
if (it.flags() & QScriptValue::SkipInEnumeration)
continue;
if (object.isQObject() && it.value().isFunction()) {
// cosmetics: skip all signals and slot, there is too many of them,
// and it is not usefull in the debugger.
continue;
}
result << JSAgentWatchData::fromScriptValue(it.name(), it.value());
}
return result;