diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-03-22 14:46:27 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-03-29 16:07:14 +0000 |
commit | b4c85e8a2ac17bf7cfce40c486d3d208def1ce89 (patch) | |
tree | 3f9b59d218432eb08496fa1e857effd4dc2a5a7e /src/corelib/kernel/qmath.h | |
parent | 8d49df2172aaffaf49fbad0bc4d522d34662b583 (diff) |
Document M_PI and friends in <QtMath>
These symbols should at least be mentioned in the documentation.
Also comment on the option of using template variables for them once
we haev support for C++14
Change-Id: Ia40f9b89d9d8a38536a2e51ae3f174b8f16ca7d6
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmath.h')
-rw-r--r-- | src/corelib/kernel/qmath.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmath.h b/src/corelib/kernel/qmath.h index 773884047a..68f6a65c87 100644 --- a/src/corelib/kernel/qmath.h +++ b/src/corelib/kernel/qmath.h @@ -149,6 +149,8 @@ inline qreal qPow(qreal x, qreal y) return pow(x, y); } +// TODO: use template variables (e.g. Qt::pi<type>) for these once we have C++14 support: + #ifndef M_E #define M_E (2.7182818284590452354) #endif |