From a75e7c4c1fd34abb9086fd0b3d5943e0c6987659 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sun, 20 Dec 2015 19:58:55 +0100 Subject: Replace Q_DECLARE_TYPEINFO(T, Q_COMPLEX_TYPE) by QML_DECLARE_TYPE(T) Q_COMPLEX_TYPE tells Qt containers that the type has a ctor/dtor and that it may not be moved in memory using memcpy(). QML types are never stored by value in Qt containers (non-copyable QObjects), so the type info declaration is superfluous. QML_DECLARE_TYPE, however, is useful (QTBUG-49920) and consistently used for all QtQuick types. Change-Id: I3bd1718b306fa7af85a623fa7a17e1b9653d2152 Reviewed-by: Mitch Curtis --- src/templates/qquickstackview_p_p.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/templates/qquickstackview_p_p.h') diff --git a/src/templates/qquickstackview_p_p.h b/src/templates/qquickstackview_p_p.h index d37334d8..d14c6326 100644 --- a/src/templates/qquickstackview_p_p.h +++ b/src/templates/qquickstackview_p_p.h @@ -100,8 +100,6 @@ public: QV4::PersistentValue properties; }; -Q_DECLARE_TYPEINFO(QQuickStackElement, Q_COMPLEX_TYPE); - class QQuickStackViewPrivate : public QQuickControlPrivate, public QQuickItemViewTransitionChangeListener { Q_DECLARE_PUBLIC(QQuickStackView) @@ -159,8 +157,6 @@ public: QQuickStackElement *element; }; -Q_DECLARE_TYPEINFO(QQuickStackViewPrivate, Q_COMPLEX_TYPE); - QT_END_NAMESPACE #endif // QQUICKSTACKVIEW_P_P_H -- cgit v1.2.3