From 1acf354a1380586a754d2a0ed546e4dceb4296cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B8rgen=20Lind?= <jorgen.lind@nokia.com>
Date: Tue, 27 Apr 2010 10:20:35 +0200
Subject: Compile fix qegl_lite.cpp

---
 src/gui/egl/qegl_lite.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/gui/egl/qegl_lite.cpp b/src/gui/egl/qegl_lite.cpp
index 2bbf22b..10caf46 100644
--- a/src/gui/egl/qegl_lite.cpp
+++ b/src/gui/egl/qegl_lite.cpp
@@ -64,6 +64,7 @@ EGLNativeWindowType QEgl::nativeWindow(QWidget* widget)
 
 EGLNativePixmapType QEgl::nativePixmap(QPixmap* pixmap)
 {
+    Q_UNUSED(pixmap);
     return 0;
 }
 
@@ -72,13 +73,11 @@ EGLNativePixmapType QEgl::nativePixmap(QPixmap* pixmap)
 //    return eglGetDisplay(EGLNativeDisplayType(EGL_DEFAULT_DISPLAY));
 //}
 
-static QGraphicsSystemScreen *screenForDevice(QPaintDevice *device)
+static QPlatformScreen *screenForDevice(QPaintDevice *device)
 {
-    QGraphicsSystem *gs = QApplicationPrivate::graphicsSystem();
-    if (!gs)
-        return 0;
+    QPlatformIntegration *pi = QApplicationPrivate::platformIntegration();
 
-    QList<QGraphicsSystemScreen *> screens = gs->screens();
+    QList<QPlatformScreen *> screens = pi->screens();
 
     int screenNumber;
     if (device && device->devType() == QInternal::Widget)
@@ -97,7 +96,7 @@ void QEglProperties::setPaintDeviceFormat(QPaintDevice *dev)
         return;
 
     // Find the QGLScreen for this paint device.
-    QGraphicsSystemScreen *screen = screenForDevice(dev);
+    QPlatformScreen *screen = screenForDevice(dev);
     if (!screen)
         return;
     int devType = dev->devType();
-- 
cgit v0.12