aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmleventtype.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-05-07 10:50:58 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-07-16 10:03:59 +0000
commit37bcbf75751cf562bc431ae01f85c56193b85a04 (patch)
tree3cd87de9a13cc8464cbbeb63c9350fd6a78b5513 /src/plugins/qmlprofiler/qmleventtype.h
parentc73c86e1a3346c86bb868396d7d5be905a313e0c (diff)
Tracing: Make sure we don't cast between different kinds of events
Add a classId to TraceEvent and TraceEventType and add is() and as() methods that check for it. Change-Id: I76fe1df624516b36db90d57d4788b17e0b690726 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmleventtype.h')
-rw-r--r--src/plugins/qmlprofiler/qmleventtype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmleventtype.h b/src/plugins/qmlprofiler/qmleventtype.h
index 6c3fc53e06..1e038e634e 100644
--- a/src/plugins/qmlprofiler/qmleventtype.h
+++ b/src/plugins/qmlprofiler/qmleventtype.h
@@ -37,6 +37,8 @@ namespace QmlProfiler {
class QmlEventType : public Timeline::TraceEventType {
public:
+ static const qint32 staticClassId = 0x716d6c74; // 'qmlt';
+
QmlEventType(Message message = MaximumMessage, RangeType rangeType = MaximumRangeType,
int detailType = -1, const QmlEventLocation &location = QmlEventLocation(),
const QString &data = QString(), const QString displayName = QString());