forked from qt-creator/qt-creator
QmlJSInspector: Show root in property inspector
Change-Id: I281ef1f74e8d8128b91c426057c4d727a77543a6 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
250b612dd0
commit
16d5b5165c
@@ -31,6 +31,8 @@
|
||||
|
||||
#include "qmlenginedebugclient.h"
|
||||
|
||||
const float CURRENT_SUPPORTED_VERSION = 2.0;
|
||||
|
||||
namespace QmlJsDebugClient {
|
||||
|
||||
struct QmlObjectData {
|
||||
@@ -76,6 +78,10 @@ void QmlEngineDebugClient::decode(QDataStream &ds,
|
||||
{
|
||||
QmlObjectData data;
|
||||
ds >> data;
|
||||
int parentId = -1;
|
||||
if (objectName() == QLatin1String("QmlDebugger") &&
|
||||
serviceVersion() >= CURRENT_SUPPORTED_VERSION )
|
||||
ds >> parentId;
|
||||
o.m_debugId = data.objectId;
|
||||
o.m_className = data.objectType;
|
||||
o.m_idString = data.idString;
|
||||
@@ -85,6 +91,7 @@ void QmlEngineDebugClient::decode(QDataStream &ds,
|
||||
o.m_source.m_columnNumber = data.columnNumber;
|
||||
o.m_contextDebugId = data.contextId;
|
||||
o.m_needsMoreData = simple;
|
||||
o.m_parentId = parentId;
|
||||
|
||||
if (simple)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user