diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-05-29 09:18:09 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-10-20 05:26:08 +0000 |
commit | b8f5ed0d5aa52c93e092fa4df7ca2f44df8f03e0 (patch) | |
tree | 082a0bfcab8aa1a5c0575f3a6d65f625c17b6bd2 /src/gui/kernel/qwindowsysteminterface.cpp | |
parent | 210128cc0e582b01a8dbd4dd9f71a19406d8c89d (diff) |
QHighDpi: Add screenForPosition()
Implement support for using the screen at a given position
when determining the scale factor and origin.
Add QHighDpiScaling::screenForPosition(), which searches
for a screen at the specified device independent or native
coordinates. The function returns the QScreen or nullptr
if no screen was found.
Add QHighDpiScaling::Point, used for representing
an invalid, device independent, or native point.
Change-Id: I58e4e3eebb8cdd5171e59f97833a00e7f8d9ecd6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
0 files changed, 0 insertions, 0 deletions