summaryrefslogtreecommitdiffstats
path: root/src/gui/math3d/qvector2d.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-02-02 05:24:02 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-02-02 05:24:02 (GMT)
commit07e565096c5d209a16102f1d41c7ada8544a77d3 (patch)
tree9b5211f8fa45319fad231b85672be86b9dbfb527 /src/gui/math3d/qvector2d.h
parent364ecfa36d6d4dc0aa917a223e88869028d8219c (diff)
downloadQt-07e565096c5d209a16102f1d41c7ada8544a77d3.zip
Qt-07e565096c5d209a16102f1d41c7ada8544a77d3.tar.gz
Qt-07e565096c5d209a16102f1d41c7ada8544a77d3.tar.bz2
Add Q_MOVABLE_TYPE decls to QVector?D, QMatrix4x4, QQuaternion
Marking these types are movable allows container classes to optimize for their unique properties. Reviewed-by: Sarah Smith Reviewed-by: Daniel Pope
Diffstat (limited to 'src/gui/math3d/qvector2d.h')
-rw-r--r--src/gui/math3d/qvector2d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/math3d/qvector2d.h b/src/gui/math3d/qvector2d.h
index d76f35a..c92c5e0 100644
--- a/src/gui/math3d/qvector2d.h
+++ b/src/gui/math3d/qvector2d.h
@@ -126,6 +126,8 @@ private:
friend class QVector4D;
};
+Q_DECLARE_TYPEINFO(QVector2D, Q_MOVABLE_TYPE);
+
inline QVector2D::QVector2D() : xp(0.0f), yp(0.0f) {}
inline QVector2D::QVector2D(float xpos, float ypos, int) : xp(xpos), yp(ypos) {}