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
ba17fb20
Commit
ba17fb20
authored
Mar 17, 2010
by
hjk
Browse files
debugger: update peek&poke 3 example
parent
90abf1bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
ba17fb20
...
...
@@ -1353,7 +1353,7 @@ class Dumper:
def
listAnonymous
(
self
,
item
,
name
,
type
):
for
field
in
type
.
fields
():
warn
(
"FIELD NAME: %s"
%
field
.
name
)
#
warn("FIELD NAME: %s" % field.name)
if
len
(
field
.
name
)
>
0
:
value
=
item
.
value
[
field
.
name
]
child
=
Item
(
value
,
item
.
iname
,
field
.
name
,
field
.
name
)
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
ba17fb20
...
...
@@ -236,19 +236,6 @@ void testPeekAndPoke3()
a
.
i
=
3
;
// Continue.
}
// QImage display
{
QImage
im
(
QSize
(
200
,
200
),
QImage
::
Format_RGB32
);
im
.
fill
(
QColor
(
200
,
100
,
130
).
rgba
());
QPainter
pain
;
pain
.
begin
(
&
im
);
pain
.
drawLine
(
2
,
2
,
130
,
130
);
// Break here.
// Toggle between "Normal" and "Displayed" in L&W Context Menu, entry "Display of Type QImage". Step.
pain
.
drawLine
(
4
,
2
,
130
,
140
);
// Step.
pain
.
drawRect
(
30
,
30
,
80
,
80
);
pain
.
end
();
}
// Complex watchers
{
struct
S
{
int
a
;
double
b
;
}
s
[
10
];
...
...
@@ -259,6 +246,23 @@ void testPeekAndPoke3()
// Expand it, continue stepping.
}
}
// QImage display
{
QImage
im
(
QSize
(
200
,
200
),
QImage
::
Format_RGB32
);
im
.
fill
(
QColor
(
200
,
10
,
30
).
rgba
());
QPainter
pain
;
pain
.
begin
(
&
im
);
pain
.
setPen
(
QPen
(
Qt
::
black
,
5.0
,
Qt
::
SolidLine
,
Qt
::
RoundCap
));
pain
.
drawEllipse
(
20
,
20
,
160
,
160
);
// Break here. Step.
// Toggle between "Normal" and "Displayed" in L&W Context Menu, entry "Display of Type QImage". Step.
pain
.
drawArc
(
70
,
115
,
60
,
30
,
200
*
16
,
140
*
16
);
pain
.
setBrush
(
Qt
::
black
);
pain
.
drawEllipse
(
65
,
70
,
15
,
15
);
// Step.
pain
.
drawEllipse
(
120
,
70
,
15
,
15
);
// Step.
pain
.
end
();
}
}
void
testAnonymous
()
...
...
Write
Preview
Markdown
is supported
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