Add env variable to debug shadow rects


To see the area covered by drawBoxShadow(), set
QCPAINTER_DEBUG_SHADOW_RECT env variable. Also adjust gallery so that
shadows stay inside the view area.

Pick-to: 6.11
Change-Id: I75a8dbdfbeb2da96b40696f02df7be247a8dd40f
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit90aa5cf39ad62fcad954034c8c5692f3f8bd6c0f
parent1af332d11830c5bdc407295509a8c9a8ddf565c6
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeMon, 5 Jan 2026 15:37:09 +0200