QmlProfiler: Make various primitive types Q_MOVABLE_TYPE

Change-Id: I08c37b33fcc2ec8c3610d52a55571878ff8bdc7d
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
This commit is contained in:
Ulf Hermann
2016-12-20 10:23:55 +01:00
parent 5479143bde
commit fcb38d1443
5 changed files with 21 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -69,3 +69,7 @@ QDataStream &operator<<(QDataStream &stream, const QmlNote &note);
} // namespace QmlProfiler
Q_DECLARE_METATYPE(QmlProfiler::QmlNote)
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(QmlProfiler::QmlNote, Q_MOVABLE_TYPE);
QT_END_NAMESPACE

View File

@@ -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

View File

@@ -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