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
8f4ae5fa
Commit
8f4ae5fa
authored
Apr 28, 2009
by
hjk
Browse files
debugger: use 4.5 features in dumpers only if compiled under 4.5+
parent
462a2046
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
8f4ae5fa
...
...
@@ -869,10 +869,11 @@ static void qDumpQDateTime(QDumper &d)
BL
(
d
,
"isNull"
,
date
.
isNull
());
I
(
d
,
"toTime_t"
,
(
long
)
date
.
toTime_t
());
S
(
d
,
"toString"
,
date
.
toString
());
#if QT_VERSION >= 0x040500
S
(
d
,
"toString_(ISO)"
,
date
.
toString
(
Qt
::
ISODate
));
S
(
d
,
"toString_(SystemLocale)"
,
date
.
toString
(
Qt
::
SystemLocaleDate
));
S
(
d
,
"toString_(Locale)"
,
date
.
toString
(
Qt
::
LocaleDate
));
S
(
d
,
"toString"
,
date
.
toString
());
#endif
#if 0
d.beginHash();
...
...
@@ -2039,11 +2040,13 @@ static void qDumpQVariantHelper(const void *data, QString *value,
*
value
=
QLatin1Char
(
'"'
)
+
v
.
toString
()
+
QLatin1Char
(
'"'
);
*
numchild
=
0
;
break
;
#if QT_VERSION >= 0x040500
case
QVariant
::
StringList
:
*
exp
=
QString
(
QLatin1String
(
"(*('"
NS
"QStringList'*)%1)"
))
.
arg
((
quintptr
)
data
);
*
numchild
=
v
.
toStringList
().
size
();
break
;
#endif
case
QVariant
::
Int
:
*
value
=
QString
::
number
(
v
.
toInt
());
*
numchild
=
0
;
...
...
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