Add touchEvent() virtual to QWindow.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 12 Dec 2011 15:24:33 +0000 (17:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Dec 2011 16:27:19 +0000 (17:27 +0100)
commit91b48208f57b10f1b0378d1888fb96af73bc9fa3
treea64535b90c91bc1b94caf3d0b0896f213f75b226
parent0319f13f1a9bdd5570977952f7b206a910bbb7a4
Add touchEvent() virtual to QWindow.

Unlike keyPressEvent(), mousePressEvent(), etc. the touch events had
no equivalent so one had to fall back to reimplementing event() or
using an event filter. This is now corrected by introducing
touchEvent(). Touch events are finally becoming a first-class citizen
in Qt 5.

Change-Id: Ia2044030154fd5b1b5384f08a3cb1749b798435f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow.h
tests/auto/gui/kernel/qwindow/tst_qwindow.cpp