diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2012-11-02 17:21:38 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-27 23:14:57 +0100 |
commit | 51c12b2d4899db31d62e930ffbe5a8849fa7336b (patch) | |
tree | a399457446b9ad4759c5eef0c590105fdfa0f948 /src/qml/qml/ftw | |
parent | 76251c91afdfbe6d0d9679c2036cbf72c7ee3cde (diff) |
Declare type information for some internal qml types.
QQmlVME::State and QBitField are movable and used in QStack. Declaring
them as movable may improve potential reallocation time, although it is
hard to prove.
Change-Id: Ia42b8104e2f24ca7574370c76084df44b9f9298e
Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'src/qml/qml/ftw')
-rw-r--r-- | src/qml/qml/ftw/qbitfield_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/ftw/qbitfield_p.h b/src/qml/qml/ftw/qbitfield_p.h index 95ca372f3a..f225c279fc 100644 --- a/src/qml/qml/ftw/qbitfield_p.h +++ b/src/qml/qml/ftw/qbitfield_p.h @@ -54,6 +54,7 @@ // #include <QtCore/qglobal.h> +#include <QtCore/qtypeinfo.h> QT_BEGIN_NAMESPACE @@ -160,6 +161,8 @@ bool QBitField::testBit(int b) const } } +Q_DECLARE_TYPEINFO(QBitField, Q_MOVABLE_TYPE); + QT_END_NAMESPACE #endif // QBITFIELD_P_H |