forked from qt-creator/qt-creator
QmlDebugger: removed prefix in expression for locals
Task-number: QTCREATORBUG-4462 Reviewed-by: Kai Koehne
This commit is contained in:
@@ -235,7 +235,6 @@ static QList<JSAgentWatchData> expandObject(const QScriptValue &object)
|
|||||||
{
|
{
|
||||||
QList<JSAgentWatchData> result;
|
QList<JSAgentWatchData> result;
|
||||||
QScriptValueIterator it(object);
|
QScriptValueIterator it(object);
|
||||||
QByteArray expPrefix = '@' + QByteArray::number(object.objectId(), 16) + "->";
|
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
if (it.flags() & QScriptValue::SkipInEnumeration)
|
if (it.flags() & QScriptValue::SkipInEnumeration)
|
||||||
@@ -246,7 +245,6 @@ static QList<JSAgentWatchData> expandObject(const QScriptValue &object)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
JSAgentWatchData data = fromScriptValue(it.name(), it.value());
|
JSAgentWatchData data = fromScriptValue(it.name(), it.value());
|
||||||
data.exp.prepend(expPrefix);
|
|
||||||
result.append(data);
|
result.append(data);
|
||||||
}
|
}
|
||||||
if (result.isEmpty()) {
|
if (result.isEmpty()) {
|
||||||
@@ -254,7 +252,6 @@ static QList<JSAgentWatchData> expandObject(const QScriptValue &object)
|
|||||||
data.name = "<no initialized data>";
|
data.name = "<no initialized data>";
|
||||||
data.hasChildren = false;
|
data.hasChildren = false;
|
||||||
data.value = " ";
|
data.value = " ";
|
||||||
data.exp.prepend(expPrefix);
|
|
||||||
data.objectId = 0;
|
data.objectId = 0;
|
||||||
result.append(data);
|
result.append(data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user