Debugger: Add simple dumper for QKeySequence

Change-Id: I097336fb77ff34e94c9096b51a511b3a0f2c86d1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-08-02 16:17:05 +02:00
parent f14634a651
commit c1d75d8df7

View File

@@ -652,6 +652,13 @@ def qdump__QKeyEvent(d, value):
d.putFields(value, dumpBase=True) d.putFields(value, dumpBase=True)
def qdump__QKeySequence(d, value):
dd = d.extractPointer(value)
_, k0, k1, k2, k3 = d.split('iiiii', dd)
d.putValue("(0x%x, 0x%x, 0x%x, 0x%x)" % (k0, k1, k2, k3));
d.putPlainChildren(value)
def qdump__QFile(d, value): def qdump__QFile(d, value):
# 9fc0965 and a373ffcd change the layout of the private structure # 9fc0965 and a373ffcd change the layout of the private structure
qtVersion = d.qtVersion() qtVersion = d.qtVersion()