qt5base-lts/examples/widgets/doc/src
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
..
addressbook-tutorial.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
addressbook.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
affine.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
analogclock.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
animatedtiles.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
appchooser.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
application.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
basicdrawing.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
basicgraphicslayouts.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
basiclayouts.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
basicsortfiltermodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
blurpicker.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
borderlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
boxes.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
calculator.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
calendar.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
calendarwidget.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
charactermap.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
chart.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
chip.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
classwizard.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
codeeditor.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
collidingmice-example.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
coloreditorfactory.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
combowidgetmapper.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
completer.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
composition.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
concentriccircles.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
configdialog.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
customsortfiltermodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
deform.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
diagramscene.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
digitalclock.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
dirview.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
dockwidgets.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
draganddroppuzzle.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
dragdroprobot.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
draggableicons.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
draggabletext.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
dynamiclayouts.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
easing.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
echoplugin.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
editabletreemodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
elasticnodes.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
elidedlabel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
embeddeddialogs.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
eventtransitions.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
extension.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
factorial.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fademessage.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fetchmore.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
findfiles.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-05 08:58:48 +02:00
flowlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fontsampler.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fridgemagnets.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
frozencolumn.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
gradients.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-anchorlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-flowlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-simpleanchorlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-weatheranchorlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
groupbox.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
i18n.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
icons.qdoc Doc: Replace "Macintosh" with something suitable or omit it 2017-05-23 13:02:33 +00:00
imagecomposition.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
imageviewer.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
interview.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
itemviewspuzzle.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
licensewizard.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
lighting.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
lineedits.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
mainwindow.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
mdi.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
menus.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
moveblocks.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
movie.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
orderform.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
padnavigator.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
painterpaths.qdoc Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
pathstroke.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
pingpong.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
pixelator.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
plugandpaint.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
regexp.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
regularexpression.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
rogue.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
screenshot.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
scribble.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
sdi.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
settingseditor.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
shapedclock.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
simpledommodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
simpletreemodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
simplewidgetmapper.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
sipdialog.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
sliders.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
spinboxdelegate.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
spinboxes.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
spreadsheet.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
standarddialogs.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
stardelegate.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
states.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
stickman.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
styleplugin.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
styles.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
stylesheet.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
sub-attaq.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
syntaxhighlighter.qdoc Doc: updated QSyntaxHighlighter documentation and use QRegularExpression 2017-04-12 22:09:43 +00:00
tabdialog.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
tablet.qdoc tablet example: enable high-DPI rendering 2017-05-15 20:49:12 +00:00
tetrix.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
textedit.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
tooltips.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
trafficlight.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
transformations.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
treemodelcompleter.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
trivialwizard.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
twowaybutton.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
undo.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
undoframework.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
validators.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
wiggly.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
windowflags.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00