D10415: Fix realDpi function for Mac

Christoph Cullmann noreply at phabricator.kde.org
Sun Feb 11 11:52:03 UTC 2018


cullmann added a comment.


  In our company we use the logicalDpiX()/logicalDpiY() on the widget we paint to, that works on macOS, too.
  
  I assume the physicalDotsPerInchY() should work the same.
  
  Sidenote: do we need to go over QScreen? We just use the function of the widget in question which is there via QPaintDevice.
  Which here would be just widgetOnScreen->physicalDpi....

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D10415

To: sbragin, #okular
Cc: cullmann, aacid, kde-mac, ltoscano, #okular, michaelweghorn, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20180211/99761e5c/attachment.html>


More information about the kde-mac mailing list