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
Tobias Hunger
qt-creator
Commits
b69fad92
Commit
b69fad92
authored
Sep 03, 2009
by
hjk
Browse files
debugger: fix child count in QAbstractItem dumpers
parent
80911789
Changes
1
Show whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
b69fad92
...
...
@@ -1085,7 +1085,7 @@ static void qDumpQAbstractItem(QDumper &d)
//d.putItem("value", "(").put(rowCount).put(",").put(columnCount).put(")");
d
.
putItem
(
"value"
,
m
->
data
(
mi
,
Qt
::
DisplayRole
).
toString
());
d
.
putItem
(
"valueencoded"
,
"2"
);
d
.
putItem
(
"numchild"
,
"1"
);
d
.
putItem
(
"numchild"
,
rowCount
*
columnCount
);
if
(
d
.
dumpChildren
)
{
d
.
beginChildren
();
for
(
int
row
=
0
;
row
<
rowCount
;
++
row
)
{
...
...
@@ -1096,7 +1096,7 @@ static void qDumpQAbstractItem(QDumper &d)
d
.
put
(
"["
).
put
(
row
).
put
(
","
).
put
(
column
).
put
(
"]"
);
d
.
endItem
();
//d.putItem("numchild", (m->hasChildren(child) ? "1" : "0"));
d
.
putItem
(
"numchild"
,
"1"
);
d
.
putItem
(
"numchild"
,
m
->
rowCount
(
child
)
*
m
->
columnCount
(
child
)
);
d
.
beginItem
(
"addr"
);
d
.
put
(
"$"
).
put
(
child
.
row
()).
put
(
","
).
put
(
child
.
column
()).
put
(
","
)
.
put
(
child
.
internalPointer
()).
put
(
","
).
put
(
child
.
model
());
...
...
@@ -1158,7 +1158,7 @@ static void qDumpQAbstractItemModel(QDumper &d)
d
.
putItem
(
"value"
,
m
.
data
(
mi
,
Qt
::
DisplayRole
).
toString
());
d
.
putItem
(
"valueencoded"
,
"2"
);
//d.putItem("numchild", (m.hasChildren(mi) ? "1" : "0"));
d
.
putItem
(
"numchild"
,
"1"
);
d
.
putItem
(
"numchild"
,
m
.
rowCount
(
mi
)
*
m
.
columnCount
(
mi
)
);
d
.
beginItem
(
"addr"
);
d
.
put
(
"$"
).
put
(
mi
.
row
()).
put
(
","
).
put
(
mi
.
column
()).
put
(
","
);
d
.
put
(
mi
.
internalPointer
()).
put
(
","
).
put
(
mi
.
model
());
...
...
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