summaryrefslogtreecommitdiffstats
path: root/src/corelib/mimetypes/qmimetype.h
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2014-02-15 10:48:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-13 17:59:55 +0100
commit14bd7a5881d2907474c36154c79f711e4667c8a4 (patch)
tree925229d472c0df1734022b972112c521ed88e311 /src/corelib/mimetypes/qmimetype.h
parent91c9cae720004ad6bb0c7b3b7e6f64a9e6a6fcf3 (diff)
Add QDebug operator for QMimeType.
Task-number: QTBUG-35686 Change-Id: I72be7cf9374f86e8cb3e6946129bbfec8fec9616 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/mimetypes/qmimetype.h')
-rw-r--r--src/corelib/mimetypes/qmimetype.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/mimetypes/qmimetype.h b/src/corelib/mimetypes/qmimetype.h
index 24d043eebc..d5acbc2184 100644
--- a/src/corelib/mimetypes/qmimetype.h
+++ b/src/corelib/mimetypes/qmimetype.h
@@ -110,5 +110,10 @@ protected:
Q_DECLARE_SHARED(QMimeType)
+#ifndef QT_NO_DEBUG_STREAM
+class QDebug;
+Q_CORE_EXPORT QDebug operator<<(QDebug debug, const QMimeType &mime);
+#endif
+
QT_END_NAMESPACE
#endif // QMIMETYPE_H