diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-04-20 14:04:18 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-04-21 10:32:47 +0000 |
commit | 414c751c7d8c81f7325a3ddee1d120a2056d05cf (patch) | |
tree | e5a2b923298582c546f820f2b590a9729c914a64 /src/platformsupport | |
parent | b4c8455eeb57c750ab3fd45497575d3a954eb8b1 (diff) |
Fall back to QWindow's screen when resolving DPR instead of using qApp
QGuiApplication::devicePixelRatio() should only be used when we don't
know which window we're targeting. For QWindow::devicePixelRatio(),
we can go though the associated screen to get a more accurate DPR.
Change-Id: Idf511fa5c09562a6daf391cd4d0b8b99471045e7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/platformsupport')
0 files changed, 0 insertions, 0 deletions