qt5base-lts/examples/widgets/tools
Edward Welbourne 02b7ec05d5 Be (somewhat more) consistent about the value of pi
Use M_PI (and friends), where possible, in favor of hand-coded
approximations of various (in)accuracies.  Where that's not available
(e.g. fragment shaders), use the same value that qmath.h uses for
M_PI, for consistency.  Replaced math.h with qmath.h in places that
defined a fall-back in case math.h omits it (it's not in the C++
standard, although M_PI is in POSIX); or removed this entirely where
it wasn't used.

Reworked some code to reduce the amount of arithmetic needed, in the
process; e.g. pulling common factors out of loops.  Revised an
example's doc to not waste time talking about using a six-sig-fig
value for pi (which we no longer do) - it really wasn't relevant, or
anything to be proud of; nor did the doc mention its later use.

Task-number: QTBUG-58083
Change-Id: I5a31e3a2b6a823b97a43209bed61a37b9aa6c05f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-06-20 09:53:46 +00:00
..
codecs Example: migrate the codecs example to use QRegularExpression 2017-02-15 14:45:40 +00:00
completer Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
customcompleter Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
echoplugin Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
i18n Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
plugandpaint Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
regexp Unify license header usage. 2016-03-29 10:20:03 +00:00
regularexpression QRegularExpression example: Handle empty patterns 2017-02-09 08:16:43 +00:00
settingseditor Example: migrate settingseditor example to use QRegularExpression 2017-02-15 14:45:36 +00:00
styleplugin Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
treemodelcompleter Example: migrate treemodelcompleter example to use QRegularExpression 2017-03-07 23:11:31 +00:00
undo Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
undoframework Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
tools.pro Convert the old feature system 2016-09-15 08:24:10 +00:00