From 83a70a74152977cd83640c9887aeb15119917350 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 15 Mar 2012 13:31:00 +0200 Subject: [PATCH] Add a note to QTouchEvent docs about empty touchpoint lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I65e9e3ed2069d9194f5e70fb9731d605e0979e6d Reviewed-by: Samuel Rødal --- src/gui/kernel/qevent.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 57c8bbdfddd..e8ed5c07651 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -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