Include render flags on engine side cached path check
At least to complete the logic on the the QCPainterEngine
side. Changing Antialiasing or DisableWindingEnforce do heavily
affect the paths. So take all the renderFlags as an int and compare
it like we do for the line width, antialiasing level, line cap/join,
etc.
This does not fix the bigger problems on the Renderer side, when
it comes to cached paths.
Pick-to: 6.11
Change-Id: I9c0470cdb6d38bf6b6e965e8b45393666716bdef
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>