diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-09-07 17:25:44 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-09-08 19:32:27 +0000 |
commit | dc39818207439a62a97179b8d2ad22ef49521148 (patch) | |
tree | 9efedd4d9022124e23fa41c7fa0401b90dba5209 /src/quicktemplates2/qquickdial.cpp | |
parent | 3512d1b617fb66f13a01e8763e395fcf69b0b5b7 (diff) |
Fully qualify atan2 with the std namespace
This fixes the build on VxWorks
Change-Id: I5ba3d182184151b62e3ed6c0ab5e4d77a0e66768
Reviewed-by: Tuomas Heimonen <tuomas.heimonen@qt.io>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdial.cpp')
-rw-r--r-- | src/quicktemplates2/qquickdial.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickdial.cpp b/src/quicktemplates2/qquickdial.cpp index bdbfb22d..93ad0b5a 100644 --- a/src/quicktemplates2/qquickdial.cpp +++ b/src/quicktemplates2/qquickdial.cpp @@ -158,7 +158,7 @@ qreal QQuickDialPrivate::positionAt(const QPointF &point) const { qreal yy = height / 2.0 - point.y(); qreal xx = point.x() - width / 2.0; - qreal angle = (xx || yy) ? atan2(yy, xx) : 0; + qreal angle = (xx || yy) ? std::atan2(yy, xx) : 0; if (angle < M_PI / -2) angle = angle + M_PI * 2; |