forked from qt-creator/qt-creator
Debugger: Simplify QByteArray dumper again
Change-Id: Id2622db1e855c7706260796b633f06d0e5da0503 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -68,11 +68,8 @@ def qdump__QByteArray(d, value):
|
|||||||
if size > 0:
|
if size > 0:
|
||||||
d.putExpandable()
|
d.putExpandable()
|
||||||
|
|
||||||
if d.qtVersion() >= 0x60000:
|
|
||||||
elided, shown = d.computeLimit(size, d.displayStringLimit)
|
elided, shown = d.computeLimit(size, d.displayStringLimit)
|
||||||
p = d.readMemory(data, shown)
|
p = d.readMemory(data, shown)
|
||||||
else:
|
|
||||||
elided, p = d.encodeByteArrayHelper(value, d.displayStringLimit)
|
|
||||||
|
|
||||||
displayFormat = d.currentItemFormat()
|
displayFormat = d.currentItemFormat()
|
||||||
if displayFormat == DisplayFormat.Automatic or displayFormat == DisplayFormat.Latin1String:
|
if displayFormat == DisplayFormat.Automatic or displayFormat == DisplayFormat.Latin1String:
|
||||||
|
Reference in New Issue
Block a user