diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-02-26 13:53:00 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-02-26 20:31:20 +0000 |
commit | 3f858a07726666222372f793f1e1a5de3c8ec373 (patch) | |
tree | 99b8f41136575040587a6ebd3ff54211320cb214 /src/gui/painting/qdrawhelper_p.h | |
parent | 4ed795df247c5859089e3a6b6ca7c24e8c973a31 (diff) |
Remove some uses of the private Q_PI constant
The patch removes several uses of the private Q_PI constant and removes
the qmath_p.h from the includes. A few places are optimized to multiply
with reciprocals instead of dividing by Q_PI.
Change-Id: I097af6a929e0609d6935563064e81c856005f4bc
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/painting/qdrawhelper_p.h')
-rw-r--r-- | src/gui/painting/qdrawhelper_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h index 0abee94016..08bc0776f7 100644 --- a/src/gui/painting/qdrawhelper_p.h +++ b/src/gui/painting/qdrawhelper_p.h @@ -46,6 +46,7 @@ // #include "QtCore/qglobal.h" +#include "QtCore/qmath.h" #include "QtGui/qcolor.h" #include "QtGui/qpainter.h" #include "QtGui/qimage.h" @@ -55,7 +56,6 @@ #endif #include "private/qrasterdefs_p.h" #include <private/qsimd_p.h> -#include <private/qmath_p.h> QT_BEGIN_NAMESPACE |