diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-05-10 14:23:54 +0300 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-05-10 19:15:04 +0200 |
commit | e0054c0b6dd9f2a30f1195f8fd13426f2b358f57 (patch) | |
tree | 6f6eb22c8df72b6bd2c75fc0b0d1ea22b62606ef /examples | |
parent | 9bf1e7ddce29dd2d84d514b37c87fe7f9adc5b63 (diff) |
Add wheel event support
Change-Id: Id827485138758ccb4c0db420559b2b9af5c45bbc
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qwindow-compositor/qwindowcompositor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/qwindow-compositor/qwindowcompositor.cpp b/examples/qwindow-compositor/qwindowcompositor.cpp index b9661f0ff..7162e2b92 100644 --- a/examples/qwindow-compositor/qwindowcompositor.cpp +++ b/examples/qwindow-compositor/qwindowcompositor.cpp @@ -302,6 +302,11 @@ bool QWindowCompositor::eventFilter(QObject *obj, QEvent *event) } break; } + case QEvent::Wheel: { + QWheelEvent *we = static_cast<QWheelEvent *>(event); + input->sendMouseWheelEvent(we->orientation(), we->delta()); + break; + } case QEvent::KeyPress: { QKeyEvent *ke = static_cast<QKeyEvent *>(event); if (ke->key() == Qt::Key_Meta || ke->key() == Qt::Key_Super_L) { |