QCanvasPath: Make clear to not update serial


Updating path serial number means adding a new entry into
ctx.cachedFillPaths. Instead, when calling clear(), only increase the
iteration counter so previous ctx.cachedFillPaths entry will be reused.
This brings back partly the behavior before cb4d675e5e.

Pick-to: 6.11
Change-Id: Iaa240837956ecfbb153ae5986168175e05476107
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit144747f61882a2d41d0e0a992d5757c5e470980f
parent91649b183147eed4335b552ffe98195d8d32c67f
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeMon, 18 May 2026 10:27:54 +0000