diff --git a/src/plugins/qmlprofiler/qmlevent.h b/src/plugins/qmlprofiler/qmlevent.h index 456eb352838..d3fd49e8e90 100644 --- a/src/plugins/qmlprofiler/qmlevent.h +++ b/src/plugins/qmlprofiler/qmlevent.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -295,6 +296,8 @@ private: } // namespace QmlProfiler +Q_DECLARE_METATYPE(QmlProfiler::QmlEvent) + QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(QmlProfiler::QmlEvent, Q_MOVABLE_TYPE); QT_END_NAMESPACE diff --git a/src/plugins/qmlprofiler/qmleventtype.h b/src/plugins/qmlprofiler/qmleventtype.h index 8b8eaa23dc0..cf559b24475 100644 --- a/src/plugins/qmlprofiler/qmleventtype.h +++ b/src/plugins/qmlprofiler/qmleventtype.h @@ -27,6 +27,7 @@ #include "qmlprofilereventlocation.h" #include "qmlprofilereventtypes.h" #include +#include namespace QmlProfiler { @@ -48,3 +49,5 @@ struct QmlEventType { }; } // namespace QmlProfiler + +Q_DECLARE_METATYPE(QmlProfiler::QmlEventType) diff --git a/src/plugins/qmlprofiler/qmlnote.h b/src/plugins/qmlprofiler/qmlnote.h index cdfd768668b..63d26a6c97d 100644 --- a/src/plugins/qmlprofiler/qmlnote.h +++ b/src/plugins/qmlprofiler/qmlnote.h @@ -25,6 +25,7 @@ #pragma once #include +#include namespace QmlProfiler { @@ -41,3 +42,5 @@ struct QmlNote { }; } // namespace QmlProfiler + +Q_DECLARE_METATYPE(QmlProfiler::QmlNote) diff --git a/src/plugins/qmlprofiler/qmltypedevent.h b/src/plugins/qmlprofiler/qmltypedevent.h index 9a3375f792c..aff8ca89d5b 100644 --- a/src/plugins/qmlprofiler/qmltypedevent.h +++ b/src/plugins/qmlprofiler/qmltypedevent.h @@ -40,3 +40,5 @@ struct QmlTypedEvent QDataStream &operator>>(QDataStream &stream, QmlTypedEvent &event); } // namespace QmlProfiler + +Q_DECLARE_METATYPE(QmlProfiler::QmlTypedEvent)