diff options
author | Ian Walters <ian.walters@nokia.com> | 2009-04-08 00:05:27 (GMT) |
---|---|---|
committer | Ian Walters <ian.walters@nokia.com> | 2009-04-08 00:05:27 (GMT) |
commit | 21f15b50777ab3507f79061e749c5cee9acecb3b (patch) | |
tree | 711cd49e2c4ea5be15182364cb9c7a4385d4aaf1 /src/corelib/io | |
parent | f7516971028d4637eeff6899fbbc6f3e8b8b5c79 (diff) | |
download | Qt-21f15b50777ab3507f79061e749c5cee9acecb3b.zip Qt-21f15b50777ab3507f79061e749c5cee9acecb3b.tar.gz Qt-21f15b50777ab3507f79061e749c5cee9acecb3b.tar.bz2 |
Move qDebug code to correct location
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qdebug.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 8334146..6c05756 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -51,6 +51,7 @@ #include <QtCore/qstring.h> #include <QtCore/qvector.h> #include <QtCore/qset.h> +#include <QtCore/qcontiguouscache.h> QT_BEGIN_HEADER @@ -232,6 +233,24 @@ inline QDebug operator<<(QDebug debug, const QSet<T> &set) return operator<<(debug, set.toList()); } +#if defined(FORCE_UREF) +template <class T> +inline QDebug &operator<<(QDebug debug, const QContiguousCache<T> &contiguousCache) +#else +template <class T> +inline QDebug operator<<(QDebug debug, const QContiguousCache<T> &cache) +#endif +{ + debug.nospace() << "QContiguousCache("; + for (int i = cache.firstIndex(); i <= cache.lastIndex(); ++i) { + debug << cache[i]; + if (i != cache.lastIndex()) + debug << ", "; + } + debug << ")"; + return debug.space(); +} + #if !defined(QT_NO_DEBUG_STREAM) Q_CORE_EXPORT_INLINE QDebug qDebug() { return QDebug(QtDebugMsg); } |