summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfswindow.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-07-25 14:55:45 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2011-07-26 12:02:32 +0200
commite4042435ba15e6da669f541cd43580f85dbeae3f (patch)
tree527211f3055fb46e09eadb518c5163861020328d /src/plugins/platforms/eglfs/qeglfswindow.cpp
parentc7c8a38ec313b998d0df76cd15fa360f56d213e2 (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/plugins/platforms/eglfs/qeglfswindow.cpp')
-rw-r--r--src/plugins/platforms/eglfs/qeglfswindow.cpp23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp
index 24b17b75e7..25da588519 100644
--- a/src/plugins/platforms/eglfs/qeglfswindow.cpp
+++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp
@@ -45,8 +45,8 @@
QT_BEGIN_NAMESPACE
-QEglFSWindow::QEglFSWindow(QWidget *w, QEglFSScreen *screen)
- : QPlatformWindow(w), m_screen(screen)
+QEglFSWindow::QEglFSWindow(QWindow *w)
+ : QPlatformWindow(w)
{
static int serialNo = 0;
m_winid = ++serialNo;
@@ -55,15 +55,11 @@ QEglFSWindow::QEglFSWindow(QWidget *w, QEglFSScreen *screen)
#endif
}
-
void QEglFSWindow::setGeometry(const QRect &)
{
// We only support full-screen windows
- QRect rect(m_screen->availableGeometry());
- QWindowSystemInterface::handleGeometryChange(this->widget(), rect);
-
- // Since toplevels are fullscreen, propegate the screen size back to the widget
- widget()->setGeometry(rect);
+ QRect rect(screen()->availableGeometry());
+ QWindowSystemInterface::handleGeometryChange(window(), rect);
QPlatformWindow::setGeometry(rect);
}
@@ -73,15 +69,4 @@ WId QEglFSWindow::winId() const
return m_winid;
}
-
-
-QPlatformGLContext *QEglFSWindow::glContext() const
-{
-#ifdef QEGL_EXTRA_DEBUG
- qWarning("QEglWindow::glContext %p\n", m_screen->platformContext());
-#endif
- Q_ASSERT(m_screen);
- return m_screen->platformContext();
-}
-
QT_END_NAMESPACE