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
PIM
KItinerary
Commits
d294d4ba
Commit
d294d4ba
authored
Oct 16, 2022
by
Volker Krause
Browse files
Dump primitive types in lists correctly as well
parent
576c4fdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/ticket-barcode-dump.cpp
View file @
d294d4ba
...
...
@@ -65,8 +65,12 @@ static void dumpGadget(const void *gadget, const QMetaObject *mo, const char* in
QByteArray
childIndent
(
indent
);
childIndent
.
append
(
" "
);
for
(
const
QVariant
&
v
:
iterable
)
{
std
::
cout
<<
indent
<<
" ["
<<
idx
++
<<
"]:"
<<
std
::
endl
;
dumpGadget
(
v
.
constData
(),
QMetaType
::
metaObjectForType
(
v
.
userType
()),
childIndent
.
constData
());
if
(
QMetaType
::
metaObjectForType
(
v
.
userType
()))
{
std
::
cout
<<
indent
<<
" ["
<<
idx
++
<<
"]:"
<<
std
::
endl
;
dumpGadget
(
v
.
constData
(),
QMetaType
::
metaObjectForType
(
v
.
userType
()),
childIndent
.
constData
());
}
else
{
std
::
cout
<<
indent
<<
" ["
<<
idx
++
<<
"]: "
<<
qPrintable
(
v
.
toString
())
<<
std
::
endl
;
}
}
}
}
...
...
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