Commit b87867e9 authored by hjk's avatar hjk
Browse files

Debugger: Make QString expandable



Change-Id: I7cbbe7ce4e82e3e30f54ffd4e731a136fdc15e6b
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent af8c8d4e
......@@ -1732,13 +1732,16 @@ def qform__QString():
def qdump__QString(d, value):
d.putStringValue(value)
d.putNumChild(0)
data, size, alloc = d.stringData(value)
d.putNumChild(size)
format = d.currentItemFormat()
if format == 1:
d.putDisplay(StopDisplay)
elif format == 2:
d.putField("editformat", DisplayUtf16String)
d.putField("editvalue", d.encodeString(value, limit=None))
if d.isExpanded():
d.putArrayData(data, size, d.lookupType(d.qtNamespace() + "QChar"))
def qdump__QStringData(d, value):
d.putStringValueByAddress(toInteger(value))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment