Fix wayland plugin and qwindow-compositor compilation
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Fri, 17 Feb 2012 23:01:32 +0000 (01:01 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 20 Feb 2012 07:51:20 +0000 (08:51 +0100)
Apparently some qtbase change triggers the need to include a bunch of
headers which were not properly included before. The extra mouse
button support in the platform plugin simply did not compile.

Change-Id: I7d518021fa81f2d5232277f0bce26e48effbeae3
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
examples/qwindow-compositor/qwindowcompositor.cpp
examples/qwindow-compositor/qwindowcompositor.h
src/plugins/platforms/wayland/qwaylandinputdevice.cpp

index 572e61f..8c4f9cd 100644 (file)
 #include <QKeyEvent>
 #include <QTouchEvent>
 #include <QOpenGLFunctions>
+#include <QGuiApplication>
+#include <QCursor>
+#include <QPixmap>
+#include <QLinkedList>
 
 #include <QtCompositor/waylandinput.h>
 
index 4a2f100..09bf08f 100644 (file)
@@ -48,6 +48,7 @@
 
 #include <QtGui/private/qopengltexturecache_p.h>
 #include <QObject>
+#include <QTimer>
 
 class QWindowCompositor : public QObject, public WaylandCompositor
 {
index 9062ff6..4f94156 100644 (file)
@@ -205,7 +205,7 @@ void QWaylandInputDevice::inputHandleButton(void *data,
     case 286:
         qt_button = Qt::ExtraButton12;
         break;
-    case 285:
+    case 287:
         qt_button = Qt::ExtraButton13;
         break;
     default: