Commit 5b583ad6 authored by hjk's avatar hjk

Debugger: Add dumper for QUuid

Change-Id: I171ac0130009b9610c766deaa2d85aa095e33d6f
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 0369bac1
......@@ -1899,6 +1899,16 @@ def qdump__QUrl(d, value):
d.putGenericItem("fragment", stringType, fragment, Hex4EncodedLittleEndian)
d.putFields(value)
def qdump__QUuid(d, value):
v = value["data4"]
d.putValue("{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
% (value["data1"], value["data2"], value["data3"],
v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7]))
d.putNumChild(1)
d.putPlainChildren(value)
def qdumpHelper_QVariant_0(d, blob):
# QVariant::Invalid
d.putBetterType("%sQVariant (invalid)" % d.qtNamespace())
......
......@@ -2962,6 +2962,14 @@ void tst_Dumpers::dumper_data()
+ Check4("url1.d.fragment", "\"\"", "@QString");
QTest::newRow("QUuid")
<< Data("#include <QUuid>",
"QUuid uuid(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);\n"
"unused(&uuid);\n")
+ CoreProfile()
+ Check("uuid", "{00000001-0002-0003-0405-060708090a0b}", "@QUuid");
QByteArray expected1 = "\"AAA";
expected1.append(char('\t'));
expected1.append(char('\r'));
......
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