Make xcomposite-egl work without widgets
authorJørgen Lind <jorgen.lind@nokia.com>
Mon, 12 Dec 2011 14:08:20 +0000 (15:08 +0100)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 12 Dec 2011 15:44:03 +0000 (16:44 +0100)
Change-Id: Ie9bfd6ca1a36650864ca8af70c25beb1baa5ac43
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp

index dad0c02..63aba0d 100644 (file)
@@ -4,7 +4,7 @@
 #include "wayland_wrapper/wlcompositor.h"
 #include "wayland-xcomposite-server-protocol.h"
 
-#include <QtWidgets/QApplication>
+#include <QtGui/QGuiApplication>
 #include <QtGui/QPlatformNativeInterface>
 #include <QtGui/QPlatformOpenGLContext>
 
@@ -40,7 +40,7 @@ XCompositeEglIntegration::XCompositeEglIntegration(WaylandCompositor *compositor
     : GraphicsHardwareIntegration(compositor)
     , mDisplay(0)
 {
-    QPlatformNativeInterface *nativeInterface = QApplication::platformNativeInterface();
+    QPlatformNativeInterface *nativeInterface = QGuiApplication::platformNativeInterface();
     if (nativeInterface) {
         mDisplay = static_cast<Display *>(nativeInterface->nativeResourceForWindow("Display",m_compositor->window()));
         if (!mDisplay)