diff -r 56cd8111b7f7 -r 41300fa6a67c src/gui/widgets/qdial.cpp --- a/src/gui/widgets/qdial.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/src/gui/widgets/qdial.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -59,6 +59,7 @@ #ifndef QT_NO_ACCESSIBILITY #include "qaccessible.h" #endif +#include QT_BEGIN_NAMESPACE @@ -135,7 +136,7 @@ Q_Q(const QDial); double yy = (double)q->height()/2.0 - p.y(); double xx = (double)p.x() - q->width()/2.0; - double a = (xx || yy) ? atan2(yy, xx) : 0; + double a = (xx || yy) ? qAtan2(yy, xx) : 0; if (a < Q_PI / -2) a = a + Q_PI * 2;