Debugger: Simplify QByteArray dumper again

Change-Id: Id2622db1e855c7706260796b633f06d0e5da0503
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-11-24 08:06:47 +01:00
parent 9a33333849
commit dd2a880b8c

View File

@@ -68,11 +68,8 @@ def qdump__QByteArray(d, value):
if size > 0:
d.putExpandable()
if d.qtVersion() >= 0x60000:
elided, shown = d.computeLimit(size, d.displayStringLimit)
p = d.readMemory(data, shown)
else:
elided, p = d.encodeByteArrayHelper(value, d.displayStringLimit)
elided, shown = d.computeLimit(size, d.displayStringLimit)
p = d.readMemory(data, shown)
displayFormat = d.currentItemFormat()
if displayFormat == DisplayFormat.Automatic or displayFormat == DisplayFormat.Latin1String: