summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-12-06 10:40:35 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-12-06 18:31:28 +0000
commit8aacde593792125ba4b75964970f6b65a689915c (patch)
treecb27c894a76eb21847a8f3f7b86ba83a37539f78 /src/corelib/tools
parenta016bed95fbd410ac3c646a3dd0cf9ffe50d1285 (diff)
QAlphaPaintEngine: port away from QRegion::rects()
Use begin()/end() instead. The old code extracted the rects from the region, then checked for a 'complex' region (by comparing the number of rectangles against 10), and replacing the region with the bounding rect if it was too complex. It then went on to adjust the rectangle list it had gotten from the original region to match the new. Simply delay getting the rectangles until after we have modified the region. Since there are many member function calls in-between, take a copy of the region to iterate over later, rather than relying on the region to be left untouched by all the code in-between. Change-Id: I49ddf4d545520ab435ab6b89eec3d24cf371823e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools')
0 files changed, 0 insertions, 0 deletions