From fcb38d144386192d0ac0c2a4ea78d4489725e76e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 20 Dec 2016 10:23:55 +0100 Subject: [PATCH] QmlProfiler: Make various primitive types Q_MOVABLE_TYPE Change-Id: I08c37b33fcc2ec8c3610d52a55571878ff8bdc7d Reviewed-by: Milian Wolff --- src/plugins/qmlprofiler/qmleventlocation.h | 4 ++++ src/plugins/qmlprofiler/qmleventtype.h | 4 ++++ src/plugins/qmlprofiler/qmlnote.h | 4 ++++ src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.h | 4 ++++ src/plugins/qmlprofiler/qmltypedevent.h | 5 +++++ 5 files changed, 21 insertions(+) diff --git a/src/plugins/qmlprofiler/qmleventlocation.h b/src/plugins/qmlprofiler/qmleventlocation.h index 5eede5ddb06..86e5768d977 100644 --- a/src/plugins/qmlprofiler/qmleventlocation.h +++ b/src/plugins/qmlprofiler/qmleventlocation.h @@ -88,3 +88,7 @@ QDataStream &operator>>(QDataStream &stream, QmlEventLocation &location); QDataStream &operator<<(QDataStream &stream, const QmlEventLocation &location); } // namespace QmlProfiler + +QT_BEGIN_NAMESPACE +Q_DECLARE_TYPEINFO(QmlProfiler::QmlEventLocation, Q_MOVABLE_TYPE); +QT_END_NAMESPACE diff --git a/src/plugins/qmlprofiler/qmleventtype.h b/src/plugins/qmlprofiler/qmleventtype.h index a2e16525f86..37a701a4e3c 100644 --- a/src/plugins/qmlprofiler/qmleventtype.h +++ b/src/plugins/qmlprofiler/qmleventtype.h @@ -90,3 +90,7 @@ inline bool operator!=(const QmlEventType &type1, const QmlEventType &type2) } // namespace QmlProfiler Q_DECLARE_METATYPE(QmlProfiler::QmlEventType) + +QT_BEGIN_NAMESPACE +Q_DECLARE_TYPEINFO(QmlProfiler::QmlEventType, Q_MOVABLE_TYPE); +QT_END_NAMESPACE diff --git a/src/plugins/qmlprofiler/qmlnote.h b/src/plugins/qmlprofiler/qmlnote.h index d57af60bed5..1178ccaca67 100644 --- a/src/plugins/qmlprofiler/qmlnote.h +++ b/src/plugins/qmlprofiler/qmlnote.h @@ -69,3 +69,7 @@ QDataStream &operator<<(QDataStream &stream, const QmlNote ¬e); } // namespace QmlProfiler Q_DECLARE_METATYPE(QmlProfiler::QmlNote) + +QT_BEGIN_NAMESPACE +Q_DECLARE_TYPEINFO(QmlProfiler::QmlNote, Q_MOVABLE_TYPE); +QT_END_NAMESPACE diff --git a/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.h b/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.h index b0fc5c89f1e..ea5036262b4 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.h +++ b/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.h @@ -69,3 +69,7 @@ private: } // namespace Internal } // namespace QmlProfiler + +QT_BEGIN_NAMESPACE +Q_DECLARE_TYPEINFO(QmlProfiler::Internal::QmlProfilerDetailsRewriter::PendingEvent, Q_MOVABLE_TYPE); +QT_END_NAMESPACE diff --git a/src/plugins/qmlprofiler/qmltypedevent.h b/src/plugins/qmlprofiler/qmltypedevent.h index d836d2b7a24..5a056b3187d 100644 --- a/src/plugins/qmlprofiler/qmltypedevent.h +++ b/src/plugins/qmlprofiler/qmltypedevent.h @@ -43,3 +43,8 @@ QDataStream &operator>>(QDataStream &stream, QmlTypedEvent &event); } // namespace QmlProfiler Q_DECLARE_METATYPE(QmlProfiler::QmlTypedEvent) + +QT_BEGIN_NAMESPACE +Q_DECLARE_TYPEINFO(QmlProfiler::QmlTypedEvent, Q_MOVABLE_TYPE); +QT_END_NAMESPACE +