• Morten Johan Sørvig's avatar
    Enable non-integer device pixel ratio · dcd2debe
    Morten Johan Sørvig authored
    
    Work around QPaintDevice::metric's int return type
    by adding a new metric that returns a scaled devicePixelRatio.
    Choose a scale factor that gives us more than enough
    range.
    
    The QPaintDevice::devicePixelRatio() convenience accessor
    is public API and can unfortunately not be changed
    to return a qreal. Add devicePixelRatioF() which
    returns the (unscaled) devicePixelRatio.
    
    Change all call sites of QPaintDevice::devicePixelRatio()
    to use QPainDevice::devicePixelRatioF().
    
    Task-number: QTBUG-46615
    Change-Id: I97ec4000fe379b7ff5e1624a871ae2512790aad9
    Reviewed-by: default avatarPaul Olav Tvete <paul.tvete@theqtcompany.com>
    Reviewed-by: default avatarLars Knoll <lars.knoll@theqtcompany.com>
    dcd2debe