Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9b34946f
Commit
9b34946f
authored
Aug 27, 2009
by
hjk
Browse files
debugger: cosmetics of the dumper output
parent
56b35618
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
9b34946f
...
...
@@ -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
);
...
...
tests/auto/debugger/tst_dumpers.cpp
View file @
9b34946f
...
...
@@ -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'},"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment