summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r--src/corelib/plugin/quuid.cpp9
-rw-r--r--src/corelib/plugin/quuid.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/plugin/quuid.cpp b/src/corelib/plugin/quuid.cpp
index 1cf171f663..46589f88bc 100644
--- a/src/corelib/plugin/quuid.cpp
+++ b/src/corelib/plugin/quuid.cpp
@@ -43,6 +43,7 @@
#include "qdatastream.h"
#include "qendian.h"
+#include "qdebug.h"
QT_BEGIN_NAMESPACE
@@ -918,6 +919,14 @@ QUuid QUuid::createUuid()
guid; otherwise returns false.
*/
+#ifndef QT_NO_DEBUG_STREAM
+QDebug operator<<(QDebug dbg, const QUuid &id)
+{
+ dbg.nospace() << "QUuid(" << id.toString() << ')';
+ return dbg.space();
+}
+#endif
+
/**
Returns a hash of the QUuid
*/
diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h
index e7cc919ad5..2eec1575e5 100644
--- a/src/corelib/plugin/quuid.h
+++ b/src/corelib/plugin/quuid.h
@@ -189,6 +189,10 @@ Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QUuid &);
Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QUuid &);
#endif
+#ifndef QT_NO_DEBUG_STREAM
+Q_CORE_EXPORT QDebug operator<<(QDebug, const QUuid &);
+#endif
+
Q_CORE_EXPORT uint qHash(const QUuid &uuid);
QT_END_NAMESPACE