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
6a20960c
Commit
6a20960c
authored
Aug 20, 2009
by
hjk
Browse files
add dumper for QRect
parent
6372dcc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
6a20960c
...
@@ -2561,6 +2561,26 @@ static void qDumpQPixmap(QDumper &d)
...
@@ -2561,6 +2561,26 @@ static void qDumpQPixmap(QDumper &d)
}
}
#endif
#endif
#ifndef QT_BOOTSTRAPPED
static
void
qDumpQRect
(
QDumper
&
d
)
{
const
QRect
&
rc
=
*
reinterpret_cast
<
const
QRect
*>
(
d
.
data
);
d
.
beginItem
(
"value"
);
d
.
put
(
"("
).
put
(
rc
.
width
()).
put
(
"x"
).
put
(
rc
.
height
());
if
(
rc
.
x
()
>
0
)
d
.
put
(
"+"
);
d
.
put
(
rc
.
x
());
if
(
rc
.
y
()
>
0
)
d
.
put
(
"+"
);
d
.
put
(
rc
.
y
());
d
.
put
(
")"
);
d
.
endItem
();
d
.
putItem
(
"type"
,
NS
"QRect"
);
d
.
putItem
(
"numchild"
,
"4"
);
d
.
disarm
();
}
#endif
static
void
qDumpQSet
(
QDumper
&
d
)
static
void
qDumpQSet
(
QDumper
&
d
)
{
{
// This uses the knowledge that QHash<T> has only a single member
// This uses the knowledge that QHash<T> has only a single member
...
@@ -3269,6 +3289,12 @@ static void handleProtocolVersion2and3(QDumper & d)
...
@@ -3269,6 +3289,12 @@ static void handleProtocolVersion2and3(QDumper & d)
qDumpQPixmap
(
d
);
qDumpQPixmap
(
d
);
#endif
#endif
break
;
break
;
case
'R'
:
#ifndef QT_BOOTSTRAPPED
if
(
isEqual
(
type
,
"QRect"
))
qDumpQRect
(
d
);
#endif
break
;
case
'S'
:
case
'S'
:
if
(
isEqual
(
type
,
"QString"
))
if
(
isEqual
(
type
,
"QString"
))
qDumpQString
(
d
);
qDumpQString
(
d
);
...
@@ -3446,6 +3472,7 @@ void *qDumpObjectData440(
...
@@ -3446,6 +3472,7 @@ void *qDumpObjectData440(
"
\"
"
NS
"QObjectSlot
\"
,"
"
\"
"
NS
"QObjectSlot
\"
,"
"
\"
"
NS
"QObjectSlotList
\"
,"
"
\"
"
NS
"QObjectSlotList
\"
,"
"
\"
"
NS
"QObjectChildList
\"
,"
"
\"
"
NS
"QObjectChildList
\"
,"
"
\"
"
NS
"QRect
\"
,"
//"\""NS"QRegion\","
//"\""NS"QRegion\","
"
\"
"
NS
"QSet
\"
,"
"
\"
"
NS
"QSet
\"
,"
"
\"
"
NS
"QString
\"
,"
"
\"
"
NS
"QString
\"
,"
...
...
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