diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-07-19 12:06:21 +0300 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-07-19 12:06:21 +0300 |
commit | b2069aaf207b601be9ed3712ae076cf213b2eac5 (patch) | |
tree | 597729a1f5b5203b5fe2eb2f062aeaa4d4cd2cd7 /examples/qml-compositor | |
parent | d4479e198a98040b8caf49de676a75c5c5f05d3b (diff) |
Fix compilation of qml example and enable touch handling.
Diffstat (limited to 'examples/qml-compositor')
-rw-r--r-- | examples/qml-compositor/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qml-compositor/main.cpp b/examples/qml-compositor/main.cpp index ede41b457..066cfee23 100644 --- a/examples/qml-compositor/main.cpp +++ b/examples/qml-compositor/main.cpp @@ -48,7 +48,7 @@ #include <QMouseEvent> #include <QDeclarativeContext> -#include <QDeclarativeView> +#include <QtQuick1/QDeclarativeView> #include <QSGItem> #include <QSGView> @@ -89,6 +89,7 @@ private slots: emit windowResized(QVariant::fromValue(static_cast<QSGItem *>(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<QSGItem *>(item))); m_windowMap[surface] = item; |