QmlProfiler: Add some Q_DECLARE_METATYPE

Change-Id: If09ce20e997087ff73eb60bb16ef2e501280944d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-05-10 13:18:12 +02:00
parent e4b2842bf8
commit 6aaa2aea35
4 changed files with 11 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include <QString>
#include <QByteArray>
#include <QVarLengthArray>
#include <QMetaType>
#include <initializer_list>
#include <type_traits>
@@ -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

View File

@@ -27,6 +27,7 @@
#include "qmlprofilereventlocation.h"
#include "qmlprofilereventtypes.h"
#include <QString>
#include <QMetaType>
namespace QmlProfiler {
@@ -48,3 +49,5 @@ struct QmlEventType {
};
} // namespace QmlProfiler
Q_DECLARE_METATYPE(QmlProfiler::QmlEventType)

View File

@@ -25,6 +25,7 @@
#pragma once
#include <QString>
#include <QMetaType>
namespace QmlProfiler {
@@ -41,3 +42,5 @@ struct QmlNote {
};
} // namespace QmlProfiler
Q_DECLARE_METATYPE(QmlProfiler::QmlNote)

View File

@@ -40,3 +40,5 @@ struct QmlTypedEvent
QDataStream &operator>>(QDataStream &stream, QmlTypedEvent &event);
} // namespace QmlProfiler
Q_DECLARE_METATYPE(QmlProfiler::QmlTypedEvent)