diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-03-07 12:33:32 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-08 11:44:46 +0100 |
commit | d42b8a22ff8e201166ea3c3ac0bb3e43a615a5d3 (patch) | |
tree | 4af67ca331dbd1d8cd2a863fbb8f0d747df751e6 /src/gui/math3d/qvector2d.cpp | |
parent | 2f63d04ff1e9c28f5c5c6465306f6e19ba781287 (diff) |
Make QVector* compile on Win/static
Task-number: QTBUG-37122
Change-Id: Ib2283e8c27da7af2bdc08eee3b7cc542fbe55d71
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/gui/math3d/qvector2d.cpp')
-rw-r--r-- | src/gui/math3d/qvector2d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/math3d/qvector2d.cpp b/src/gui/math3d/qvector2d.cpp index a56e23eb72..73999f1fca 100644 --- a/src/gui/math3d/qvector2d.cpp +++ b/src/gui/math3d/qvector2d.cpp @@ -326,10 +326,12 @@ float QVector2D::distanceToLine /*! Returns the dot product of \a v1 and \a v2. */ +#if defined(QT_BUILD_GUI_LIB) && !defined(QT_STATIC) float QVector2D::dotProduct(const QVector2D& v1, const QVector2D& v2) { return v1.xp * v2.xp + v1.yp * v2.yp; } +#endif /*! \fn bool operator==(const QVector2D &v1, const QVector2D &v2) |