From b2069aaf207b601be9ed3712ae076cf213b2eac5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 19 Jul 2011 12:06:21 +0300 Subject: [PATCH] Fix compilation of qml example and enable touch handling. --- examples/qml-compositor/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/qml-compositor/main.cpp b/examples/qml-compositor/main.cpp index ede41b4..066cfee 100644 --- a/examples/qml-compositor/main.cpp +++ b/examples/qml-compositor/main.cpp @@ -48,7 +48,7 @@ #include #include -#include +#include #include #include @@ -89,6 +89,7 @@ private slots: emit windowResized(QVariant::fromValue(static_cast(item))); } else { WaylandSurfaceItem *item = new WaylandSurfaceItem(surface, rootObject()); + item->setTouchEventsEnabled(true); connect(surface, SIGNAL(destroyed(QObject *)), this, SLOT(surfaceDestroyed(QObject *))); emit windowAdded(QVariant::fromValue(static_cast(item))); m_windowMap[surface] = item; -- 2.7.4