diff options
Diffstat (limited to 'src/gui/kernel/qplatformwindow_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformwindow_qpa.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp index b1fdc9734d..cd4cc2e034 100644 --- a/src/gui/kernel/qplatformwindow_qpa.cpp +++ b/src/gui/kernel/qplatformwindow_qpa.cpp @@ -43,6 +43,7 @@ #include <QtGui/qwindowsysteminterface_qpa.h> #include <QtGui/qwindow.h> +#include <QtGui/qscreen.h> class QPlatformWindowPrivate { @@ -89,6 +90,15 @@ QPlatformWindow *QPlatformWindow::parent() const } /*! + Returns the platform screen handle corresponding to this platform window. +*/ +QPlatformScreen *QPlatformWindow::screen() const +{ + Q_D(const QPlatformWindow); + return d->window->screen()->handle(); +} + +/*! Returns the actual surface format of the window. */ QSurfaceFormat QPlatformWindow::format() const |