aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmleventtype.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-05-04 18:55:44 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-10 16:44:58 +0000
commitca5d9659e19a92ed15fe5b839f1989152f87d18b (patch)
tree116c395ac4041f69d8bfb134d30769a2197ad597 /src/plugins/qmlprofiler/qmleventtype.h
parent943fc80f515b5f5e1d1751ae5a3179477261d9fc (diff)
QmlProfiler: Provide stream operators for QmlEventType and QmlNote
This is the foundation for a new file format. Change-Id: Ib5ae5bfe8b45d9dc654b443ab700186993c3bfc9 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmleventtype.h')
-rw-r--r--src/plugins/qmlprofiler/qmleventtype.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmleventtype.h b/src/plugins/qmlprofiler/qmleventtype.h
index 24a70ee077..5221091ece 100644
--- a/src/plugins/qmlprofiler/qmleventtype.h
+++ b/src/plugins/qmlprofiler/qmleventtype.h
@@ -48,6 +48,9 @@ struct QmlEventType {
int detailType; // can be EventType, BindingType, PixmapEventType or SceneGraphFrameType
};
+QDataStream &operator>>(QDataStream &stream, QmlEventType &type);
+QDataStream &operator<<(QDataStream &stream, const QmlEventType &type);
+
} // namespace QmlProfiler
Q_DECLARE_METATYPE(QmlProfiler::QmlEventType)