diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-07-25 14:55:45 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-07-26 12:02:32 +0200 |
commit | e4042435ba15e6da669f541cd43580f85dbeae3f (patch) | |
tree | 527211f3055fb46e09eadb518c5163861020328d /src/gui/kernel/qplatformwindow_qpa.cpp | |
parent | c7c8a38ec313b998d0df76cd15fa360f56d213e2 (diff) |
Get the eglfs plugin compiling.
Change-Id: I5addb1a2593a670d559b9fbf9183f52af410895b
Reviewed-on: http://codereview.qt.nokia.com/2176
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
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 |