forked from qt-creator/qt-creator
Debugger: Adjust QDateTime dumper after Qt 5.2 changes
Task-number: QTCREATORBUG-10232 Change-Id: I10551a258edb9456c4a9f93a3bfb374a8f07fc7d Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -628,6 +628,13 @@ QString decodeData(const QByteArray &ba, int encoding)
|
||||
const QByteArray decodedBa = QByteArray::fromHex(ba);
|
||||
return QString::fromUtf8(decodedBa);
|
||||
}
|
||||
case MillisecondsSinceEpoch: {
|
||||
const qint64 ms = ba.toLongLong();
|
||||
QDateTime d;
|
||||
d.setTimeSpec(Qt::UTC);
|
||||
d.setMSecsSinceEpoch(ms);
|
||||
return d.toString(Qt::TextDate);
|
||||
}
|
||||
}
|
||||
qDebug() << "ENCODING ERROR: " << encoding;
|
||||
return QCoreApplication::translate("Debugger", "<Encoding error>");
|
||||
|
||||
Reference in New Issue
Block a user