diff options
author | Dmitry Kazakov <dimula73@gmail.com> | 2018-12-04 20:11:34 +0300 |
---|---|---|
committer | Dmitry Kazakov <dimula73@gmail.com> | 2019-05-07 17:28:58 +0000 |
commit | 2841d5bf64d6228cdb5e42cdd1d4e2e8035217fa (patch) | |
tree | 2860960f87143b58aa2477fcc6212af0f2bf1d9b /src/plugins/platforms/windows/qwindowsscreen.cpp | |
parent | 06b8644953fc526707b5fe24c8ef08f4829ba1c6 (diff) |
Return QScreen's HMONITOR handle via QPlatformNativeInterface
It is needed to be able to fetch extra information about the display via
DXGI interface.
Change-Id: Id83982eb07ade157719e430d0abcc2613409a343
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsscreen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsscreen.cpp b/src/plugins/platforms/windows/qwindowsscreen.cpp index 0520f88935..b70b0bbe31 100644 --- a/src/plugins/platforms/windows/qwindowsscreen.cpp +++ b/src/plugins/platforms/windows/qwindowsscreen.cpp @@ -321,6 +321,11 @@ void QWindowsScreen::handleChanges(const QWindowsScreenData &newData) } } +HMONITOR QWindowsScreen::handle() const +{ + return m_data.hMonitor; +} + QRect QWindowsScreen::virtualGeometry(const QPlatformScreen *screen) // cf QScreen::virtualGeometry() { QRect result; |