Skip to content
GitLab
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
0733a70d
Commit
0733a70d
authored
Apr 21, 2010
by
hjk
Browse files
debugger: add simple QUrl dumper
parent
3d1a97e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.py
View file @
0733a70d
...
...
@@ -1440,6 +1440,15 @@ def qdump__QTextCodec(d, item):
d
.
putCallItem
(
"name"
,
item
,
"name()"
)
d
.
putCallItem
(
"mibEnum"
,
item
,
"mibEnum()"
)
def
qdump__QUrl
(
d
,
item
):
d_ptr
=
item
.
value
[
"d"
].
dereference
()
d
.
putStringValue
(
d_ptr
[
"encodedOriginal"
])
d
.
putNumChild
(
1
)
if
d
.
isExpanded
(
item
):
with
Children
(
d
):
d
.
putItem
(
Item
(
d_ptr
,
item
.
iname
,
"d"
,
"d"
))
def
qdumpHelper__QVariant
(
d
,
value
):
#warn("VARIANT TYPE: %s : " % variantType)
data
=
value
[
"d"
][
"data"
]
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
0733a70d
...
...
@@ -47,6 +47,7 @@
#include
<QtCore/QThread>
#include
<QtCore/QVariant>
#include
<QtCore/QVector>
#include
<QtCore/QUrl>
#if QT_VERSION >= 0x040500
#include
<QtCore/QSharedPointer>
#endif
...
...
@@ -1165,6 +1166,8 @@ void testQStack()
void
testQString
()
{
QUrl
url
(
QString
(
"http://www.nokia.com"
));
QString
str
=
"Hello "
;
str
+=
" big, "
;
str
+=
" fat "
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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