Reset more state in debug visualizer


Running Gallery with QCPAINTER_DEBUG_RENDER=1 shows that in
some items the drawing affects the statistics overlay, which is
not great. reset() things properly to avoid this.

Pick-to: 6.11
Change-Id: Ie4bf7e558a495866000f56fb0e8e0e06e4cd023a
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit9511d017b658dfc6708823e44f6b552bd1f998ef
parentc2e1df3f942ef19d520c6f1e11f31cd15cec11a1
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeTue, 3 Feb 2026 13:05:30 +0100