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
979e2c29
Commit
979e2c29
authored
Jul 01, 2010
by
hjk
Browse files
debugger: improve QRegion dumper
Don't use inferior calls anymore.
parent
f01980e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
979e2c29
...
...
@@ -1378,11 +1378,17 @@ def qdump__QRectF(d, item):
def
qdump__QRegion
(
d
,
item
):
d
.
putValue
(
" "
)
d
.
putNumChild
(
1
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
):
d
.
putCallItem
(
"rects"
,
item
,
"rects()"
)
p
=
item
.
value
[
"d"
].
dereference
()[
"qt_rgn"
]
if
isNull
(
p
):
d
.
putValue
(
"<empty>"
)
d
.
putNumChild
(
0
)
else
:
n
=
str
(
p
.
dereference
()[
"numRects"
])
d
.
putItemCount
(
n
)
d
.
putNumChild
(
n
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
):
d
.
putFields
(
Item
(
p
.
dereference
(),
item
.
iname
))
# qt_rgn might be 0
# gdb.parse_and_eval("region")["d"].dereference()["qt_rgn"].dereference()
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
979e2c29
...
...
@@ -810,6 +810,9 @@ void testQRegion()
region
+=
QRect
(
100
,
100
,
200
,
200
);
region
+=
QRect
(
300
,
300
,
400
,
500
);
region
+=
QRect
(
500
,
500
,
600
,
600
);
region
+=
QRect
(
500
,
500
,
600
,
600
);
region
+=
QRect
(
500
,
500
,
600
,
600
);
region
+=
QRect
(
500
,
500
,
600
,
600
);
}
...
...
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