summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qcborcommon.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@qt.io>2018-09-10 08:47:32 +0200
committerJędrzej Nowacki <jedrzej.nowacki@qt.io>2018-10-03 14:49:27 +0000
commit31f3facac32913074fe91b8f77e72be7c2f55a65 (patch)
tree1528f1f903485657ea4f5514988f344fed2dc888 /src/corelib/serialization/qcborcommon.h
parente74cb37159b593b6c180949d56c99f4ea63986db (diff)
Implement QDataStream operator for QCborSimpleValue
That allows us to remove custom handling in QMetaType. Change-Id: Ic09fb96e1a05c6897803811d70aebbc6ea6e4f2e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/serialization/qcborcommon.h')
-rw-r--r--src/corelib/serialization/qcborcommon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/serialization/qcborcommon.h b/src/corelib/serialization/qcborcommon.h
index 9661cd70bb..0147f85de8 100644
--- a/src/corelib/serialization/qcborcommon.h
+++ b/src/corelib/serialization/qcborcommon.h
@@ -133,6 +133,11 @@ Q_CORE_EXPORT QDebug operator<<(QDebug, QCborKnownTags tg);
Q_CORE_EXPORT QDebug operator<<(QDebug, QCborTag tg);
#endif
+#if !defined(QT_NO_DEBUG_STREAM)
+QDataStream &operator<<(QDataStream &ds, QCborSimpleType st);
+QDataStream &operator>>(QDataStream &ds, QCborSimpleType &st);
+#endif
+
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QCborTag)