qt5base-lts/tests/auto/gui/painting
Edward Welbourne 1631384c27 tst_QWMatrix: use lambdas to duplicate messy code less
The cumbersome complex calls to QMatrix were surely easy to write
thanks to copy-and-paste; but this left the reader to either
laboriously check or guess that all the copies were the same (and
notice that there were two, in fact).  DRY.

Since QMatrix wants qreal data, change the float deg angle to a qreal
and work in qreal throughout.  Passing the angle to a function instead
of repeating it obviates the need for a local variable in the calling
code, to hold its value.

Change-Id: I6bb4adf438a893083ca19f27942502c1e5c518aa
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2017-02-27 17:45:28 +00:00
..
qbrush Updated license headers 2016-01-21 18:55:18 +00:00
qcolor Replace QDrawHelperGammaTables with QColorProfile 2016-11-24 09:40:14 +00:00
qpagelayout Updated license headers 2016-01-21 18:55:18 +00:00
qpagesize Updated license headers 2016-01-21 18:55:18 +00:00
qpaintengine Updated license headers 2016-01-21 18:55:18 +00:00
qpainter Tests: Fix Clang warnings about various unused variables 2017-02-05 10:54:28 +00:00
qpainterpath tst_QPainterPath: clean up 2016-08-05 19:33:05 +00:00
qpainterpathstroker Updated license headers 2016-01-21 18:55:18 +00:00
qpathclipper Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qpdfwriter Updated license headers 2016-01-21 18:55:18 +00:00
qpen Updated license headers 2016-01-21 18:55:18 +00:00
qpolygon QPolygon: add a smoke-test for boundingRect() 2016-08-04 10:46:06 +00:00
qregion Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
qtransform Remove inclusion of -lm for INTEGRITY. 2016-03-18 20:40:59 +00:00
qwmatrix tst_QWMatrix: use lambdas to duplicate messy code less 2017-02-27 17:45:28 +00:00
painting.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00