Add a note to QTouchEvent docs about empty touchpoint lists
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Thu, 15 Mar 2012 11:31:00 +0000 (13:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 19:03:33 +0000 (20:03 +0100)
Change-Id: I65e9e3ed2069d9194f5e70fb9731d605e0979e6d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qevent.cpp

index 57c8bbd..e8ed5c0 100644 (file)
@@ -3378,9 +3378,10 @@ QWindowStateChangeEvent::~QWindowStateChangeEvent()
     gestures. Whenever such a decision is made (the gesture is recognized), the clients will be
     notified with a QEvent::TouchCancel event so they can update their state accordingly.
 
-    The touchPoints() function returns a list of all touch points contained in the event.
-    Information about each touch point can be retrieved using the QTouchEvent::TouchPoint class.
-    The Qt::TouchPointState enum describes the different states that a touch point may have.
+    The touchPoints() function returns a list of all touch points contained in the event. Note that
+    this list may be empty, for example in case of a QEvent::TouchCancel event. Information about
+    each touch point can be retrieved using the QTouchEvent::TouchPoint class. The
+    Qt::TouchPointState enum describes the different states that a touch point may have.
 
     \section1 Event Delivery and Propagation