aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar/qquickdayofweekmodel_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-20 19:58:55 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-21 12:43:27 +0000
commita75e7c4c1fd34abb9086fd0b3d5943e0c6987659 (patch)
treeb66422117bdc5a3795d33083eadf6fbd1c74d8b6 /src/imports/calendar/qquickdayofweekmodel_p.h
parent1797cbcd839b1bbcd09a6549e787b5211a7d1a3e (diff)
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 <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar/qquickdayofweekmodel_p.h')
-rw-r--r--src/imports/calendar/qquickdayofweekmodel_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/imports/calendar/qquickdayofweekmodel_p.h b/src/imports/calendar/qquickdayofweekmodel_p.h
index 87e04695..90ebdc6c 100644
--- a/src/imports/calendar/qquickdayofweekmodel_p.h
+++ b/src/imports/calendar/qquickdayofweekmodel_p.h
@@ -50,6 +50,7 @@
#include <QtCore/qabstractitemmodel.h>
#include <QtCore/qlocale.h>
+#include <QtQml/qqml.h>
QT_BEGIN_NAMESPACE
@@ -88,8 +89,8 @@ private:
Q_DECLARE_PRIVATE(QQuickDayOfWeekModel)
};
-Q_DECLARE_TYPEINFO(QQuickDayOfWeekModel, Q_COMPLEX_TYPE);
-
QT_END_NAMESPACE
+QML_DECLARE_TYPE(QQuickDayOfWeekModel)
+
#endif // QQUICKDAYOFWEEKMODEL_P_H