Remove devicePixelRatio() function from the public API for now


It is not just unused, but also broken since it only ever returns
a non-default value when using QCanvasPainterItem. The Widget for
example does not communicate any dpr value to the painter. (more
precisely, it does, to the engine and renderer, but that's a different
value, not QCanvasPainter's m_devicePixelRatio)

The actual dpr value is in the renderer (rhiCtx.dpr). The painter
object's m_devicePixelRatio is not actually used for anything.

Pick-to: 6.12
Change-Id: Ib7106ad4db82c754df6389a1613c08f7d133dfc1
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit01352a1568db393a1d049689ca80d2ac54f04807
parenta87cf3c003890ae5418bac6d82b4d4c5df298e0a
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeTue, 9 Jun 2026 11:50:40 +0000