From 94a757665885443eaa199649492855aa75d4c5ec Mon Sep 17 00:00:00 2001 From: John Layt Date: Thu, 21 Mar 2013 19:44:33 +0000 Subject: QDateTime - Change debug output to ISO Format Change the debug format from Qt::TextDate to a more detailed ISO style format including better time spec output. [ChangeLog][QtCore][QDateTime] The debug datastream is now an ISO-like format instead of Qt::TextDate Change-Id: Iddbb8199c3bfbf7bca845482617e7a85da43259d Reviewed-by: Thiago Macieira --- src/corelib/tools/qdatetime.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/tools/qdatetime.h') diff --git a/src/corelib/tools/qdatetime.h b/src/corelib/tools/qdatetime.h index 25f5b74eb2..8b63c5a377 100644 --- a/src/corelib/tools/qdatetime.h +++ b/src/corelib/tools/qdatetime.h @@ -293,6 +293,10 @@ private: friend Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QDateTime &); friend Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QDateTime &); #endif + +#if !defined(QT_NO_DEBUG_STREAM) && !defined(QT_NO_DATESTRING) + friend Q_CORE_EXPORT QDebug operator<<(QDebug, const QDateTime &); +#endif }; Q_DECLARE_SHARED(QDateTime) -- cgit v1.2.3