From 9b34946f850f3b4cdac3e9265423363b9f16afe7 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Thu, 27 Aug 2009 16:52:14 +0200 Subject: [PATCH] debugger: cosmetics of the dumper output --- share/qtcreator/gdbmacros/gdbmacros.cpp | 4 ++-- tests/auto/debugger/tst_dumpers.cpp | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index 56a5d7f2d63..fe13ca73291 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -2269,7 +2269,7 @@ static void qDumpQObjectMethodList(QDumper &d) d.putItem("type", NS"QObjectMethodList"); d.putItem("numchild", mo->methodCount()); if (d.dumpChildren) { - d.putItem("childtype", "QMetaMethod::Method"); + d.putItem("childtype", NS"QMetaMethod::Method"); d.putItem("childnumchild", "0"); d.beginChildren(); for (int i = 0; i != mo->methodCount(); ++i) { @@ -2400,7 +2400,7 @@ static void qDumpQObjectSignalList(QDumper &d) const int methodCount = mo->methodCount(); for (int i = methodCount; --i >= 0; ) count += (mo->method(i).methodType() == QMetaMethod::Signal); - d.putItem("type", "QObjectSignalList"); + d.putItem("type", NS"QObjectSignalList"); d.putItemCount("value", count); d.putItem("addr", d.data); d.putItem("numchild", count); diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 47f990223e6..5b3f3256c39 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -1741,9 +1741,8 @@ void tst_Debugger::dumpQObjectChildList() void tst_Debugger::dumpQObjectMethodList() { QStringListModel m; - qDebug() << "FIXME: that should be NS::QMetaMethod::Method"; testDumper("addr='<synthetic>',type='$T',numchild='20'," - "childtype='QMetaMethod::Method',childnumchild='0',children=[" + "childtype='"NS"QMetaMethod::Method',childnumchild='0',children=[" "{name='0 0 destroyed(QObject*)',value='<Signal> (1)'}," "{name='1 1 destroyed()',value='<Signal> (1)'}," "{name='2 2 deleteLater()',value='<Slot> (2)'}," @@ -1905,8 +1904,8 @@ void tst_Debugger::dumpQObjectSignalList() QObject o; o.setObjectName("Test"); - qDebug() << "FIXME: that should be NS::QObjectSignalList"; - testDumper("type='QObjectSignalList',value='<2 items>',addr='$A',numchild='2',children=[" + testDumper("type='"NS"QObjectSignalList',value='<2 items>'," + "addr='$A',numchild='2',children=[" "{name='0',value='destroyed(QObject*)',numchild='0'," "addr='$A',type='"NS"QObjectSignal'}," "{name='1',value='destroyed()',numchild='0'," @@ -1915,7 +1914,7 @@ void tst_Debugger::dumpQObjectSignalList() // Case 2: QAbstractItemModel with no connections. QStringListModel m(QStringList() << "Test1" << "Test2"); - QByteArray expected = "type='QObjectSignalList',value='<16 items>'," + QByteArray expected = "type='"NS"QObjectSignalList',value='<16 items>'," "addr='$A',numchild='16',children=[" "{name='0',value='destroyed(QObject*)',numchild='0'," "addr='$A',type='"NS"QObjectSignal'}," -- GitLab