diff options
author | Martin Smith <msmith@trolltech.com> | 2010-02-10 13:54:25 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-02-10 13:54:25 (GMT) |
commit | c7f8dc9ad153ee28c1c38f6096f72b46c747d2b1 (patch) | |
tree | f0aed01d4f2c8f4ddf2ed570fb6d872c4c17943e /src/gui/painting/qmath_p.h | |
parent | d44081d5a63cebd05783b343dd4ef364345855ff (diff) | |
parent | b9f676f68cffdd2b5fe2ea68f9eca65947e0fbfe (diff) | |
download | Qt-c7f8dc9ad153ee28c1c38f6096f72b46c747d2b1.zip Qt-c7f8dc9ad153ee28c1c38f6096f72b46c747d2b1.tar.gz Qt-c7f8dc9ad153ee28c1c38f6096f72b46c747d2b1.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1
Diffstat (limited to 'src/gui/painting/qmath_p.h')
-rw-r--r-- | src/gui/painting/qmath_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/painting/qmath_p.h b/src/gui/painting/qmath_p.h index cd9f5ea..8a5f5ab 100644 --- a/src/gui/painting/qmath_p.h +++ b/src/gui/painting/qmath_p.h @@ -54,6 +54,7 @@ // #include <math.h> +#include <qmath.h> QT_BEGIN_NAMESPACE @@ -61,6 +62,11 @@ static const qreal Q_PI = qreal(3.14159265358979323846); // pi static const qreal Q_2PI = qreal(6.28318530717958647693); // 2*pi static const qreal Q_PI2 = qreal(1.57079632679489661923); // pi/2 +inline int qIntSqrtInt(int v) +{ + return static_cast<int>(qSqrt(static_cast<qreal>(v))); +} + QT_END_NAMESPACE #endif // QMATH_P_H |