forked from qt-creator/qt-creator
QmlProfiler: Add some Q_DECLARE_METATYPE
Change-Id: If09ce20e997087ff73eb60bb16ef2e501280944d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QVarLengthArray>
|
#include <QVarLengthArray>
|
||||||
|
#include <QMetaType>
|
||||||
|
|
||||||
#include <initializer_list>
|
#include <initializer_list>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@@ -295,6 +296,8 @@ private:
|
|||||||
|
|
||||||
} // namespace QmlProfiler
|
} // namespace QmlProfiler
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QmlProfiler::QmlEvent)
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
Q_DECLARE_TYPEINFO(QmlProfiler::QmlEvent, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(QmlProfiler::QmlEvent, Q_MOVABLE_TYPE);
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
#include "qmlprofilereventlocation.h"
|
#include "qmlprofilereventlocation.h"
|
||||||
#include "qmlprofilereventtypes.h"
|
#include "qmlprofilereventtypes.h"
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QMetaType>
|
||||||
|
|
||||||
namespace QmlProfiler {
|
namespace QmlProfiler {
|
||||||
|
|
||||||
@@ -48,3 +49,5 @@ struct QmlEventType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace QmlProfiler
|
} // namespace QmlProfiler
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QmlProfiler::QmlEventType)
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QMetaType>
|
||||||
|
|
||||||
namespace QmlProfiler {
|
namespace QmlProfiler {
|
||||||
|
|
||||||
@@ -41,3 +42,5 @@ struct QmlNote {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace QmlProfiler
|
} // namespace QmlProfiler
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QmlProfiler::QmlNote)
|
||||||
|
@@ -40,3 +40,5 @@ struct QmlTypedEvent
|
|||||||
QDataStream &operator>>(QDataStream &stream, QmlTypedEvent &event);
|
QDataStream &operator>>(QDataStream &stream, QmlTypedEvent &event);
|
||||||
|
|
||||||
} // namespace QmlProfiler
|
} // namespace QmlProfiler
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QmlProfiler::QmlTypedEvent)
|
||||||
|
Reference in New Issue
Block a user