QQuickBorderImage: fix the implicit size of scalable images on high DPI


The implicit size was the image's original size divided by its device
pixel ratio. That's correct for an @2x image, whose original size is in
image pixels. But a scalable image without sourceSize is rendered for
the device pixel ratio, while its original size is its natural size, so
e.g. an SVG ended up with half its natural size on a screen with DPR 2.

Use the size of the loaded image instead, as QQuickImage does.

Fixes: QTBUG-151330
Pick-to: 6.12
Change-Id: I128fdf1bc0d789f241dbfbcc2d6b22bb864a9046
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit7865e99cd1ec3694b1f336b74225b352e1c3ed09
parent715f62e0d11fbd381cb4806246b3eb3d77ebc320
authorVladimir Belyavsky <belyavskyv@gmail.com>
committerVladimir Belyavsky <belyavskyv@gmail.com>
commit timeThu, 22 Oct 2026 10:33:22 +0000