Commit 8f4ae5fa authored by hjk's avatar hjk
Browse files

debugger: use 4.5 features in dumpers only if compiled under 4.5+

parent 462a2046
......@@ -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());
#if 0
......@@ -2039,11 +2040,13 @@ static void qDumpQVariantHelper(const void *data, QString *value,
*value = QLatin1Char('"') + v.toString() + QLatin1Char('"');
*numchild = 0;
#if QT_VERSION >= 0x040500
case QVariant::StringList:
*exp = QString(QLatin1String("(*('"NS"QStringList'*)%1)"))
*numchild = v.toStringList().size();
case QVariant::Int:
*value = QString::number(v.toInt());
*numchild= 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment