Port away from deprecated Units.devicePixelRatio
devicePixelRatio is always 1 when Qt HiDPI scaling is used, which should be always the case nowadays.
devicePixelRatio is always 1 when Qt HiDPI scaling is used, which should be always the case nowadays.