qt5base-lts/tests/auto/gui/painting/qwmatrix
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
..
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qwmatrix.pro Remove inclusion of -lm for INTEGRITY. 2016-03-18 20:40:59 +00:00
tst_qwmatrix.cpp tst_QWMatrix: use lambdas to duplicate messy code less 2017-02-27 17:45:28 +00:00