QmlDebugging: Show Object Tree in Console

Show QML/Javascript objects as a tree when
evaluated in the console.

Change-Id: I42901bf9bda3f18fb9fb1ca309a8370ccbe37c0a
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Aurindam Jana
2012-02-16 15:58:40 +01:00
parent 4667371b9a
commit 9720c0d737
4 changed files with 188 additions and 132 deletions

View File

@@ -53,6 +53,7 @@ class QmlAdapter;
namespace Internal {
class QtMessageLogItem;
class QmlEnginePrivate;
class QmlEngine : public DebuggerEngine
@@ -182,6 +183,8 @@ private:
void updateEditor(Core::IEditor *editor, const QTextDocument *document);
bool canEvaluateScript(const QString &script);
QtMessageLogItem *constructLogItemTree(const QVariant &result,
const QString &key = QString());
private:
friend class QmlCppEngine;