From f93fe86be7c0b6affc866eec2c5c85d2981b59de Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 27 Oct 2010 17:04:07 +0200
Subject: [PATCH] jsdebugger: don't output function code. it's useless.

---
 share/qtcreator/qml/qmljsdebugger/jsdebuggeragent.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/share/qtcreator/qml/qmljsdebugger/jsdebuggeragent.cpp b/share/qtcreator/qml/qmljsdebugger/jsdebuggeragent.cpp
index 4e208126e71..9e33748f2a3 100644
--- a/share/qtcreator/qml/qmljsdebugger/jsdebuggeragent.cpp
+++ b/share/qtcreator/qml/qmljsdebugger/jsdebuggeragent.cpp
@@ -156,9 +156,9 @@ 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.
+        if (/*object.isQObject() &&*/ it.value().isFunction()) {
+            // Cosmetics: skip all functions and slot, there are too many of them,
+            // and it is not useful information in the debugger.
             continue;
         }
         JSAgentWatchData data = fromScriptValue(it.name(), it.value());
@@ -440,7 +440,7 @@ void JSDebuggerAgent::messageReceived(const QByteArray& message)
             QScriptValue object;
             object = engine()->objectById(objectId);
 
-            if(object.isObject()) {
+            if (object.isObject()) {
                 QScriptValue result = engine()->evaluate(value);
                 object.setProperty(property, result);
             }
-- 
GitLab