summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/utils/camerahelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/datavis3d/utils/camerahelper.cpp')
-rw-r--r--src/datavis3d/utils/camerahelper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datavis3d/utils/camerahelper.cpp b/src/datavis3d/utils/camerahelper.cpp
index 4e0a5409..bef73a56 100644
--- a/src/datavis3d/utils/camerahelper.cpp
+++ b/src/datavis3d/utils/camerahelper.cpp
@@ -1,5 +1,6 @@
#include "camerahelper_p.h"
+#include <qmath.h>
#include <QMatrix4x4>
#include <QVector3D>
@@ -58,7 +59,7 @@ QMatrix4x4 CameraHelper::calculateViewMatrix(QPoint mousePos, int zoom
m_xRotation -= mouseMoveX;
m_yRotation -= mouseMoveY;
// Reset at 360 in x and limit to 0...90 in y
- if (fabs(m_xRotation) >= 360)
+ if (qFabs(m_xRotation) >= 360)
m_xRotation = 0;
if (m_yRotation >= 90) {
m_yRotation = 90;