From ab84aa53affd6215abcdbe6dc56a0ca021a49d6b Mon Sep 17 00:00:00 2001 From: Debao Zhang Date: Fri, 16 Mar 2012 17:02:49 -0700 Subject: QWidget: update documents of mouseDoubleClickEvent() Double click behavior has been changed. see SHA: b371f3f943703840d0dfbe30505018bcca06e260 Change-Id: Ibd921d01fb25b8c31f75105a4ff63c42bf00c335 Reviewed-by: Casper van Donderen Reviewed-by: Laszlo Agocs --- src/widgets/kernel/qwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/widgets/kernel') diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index a4bb205b76..5457c54f5d 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -612,8 +612,9 @@ void QWidget::setAutoFillBackground(bool enabled) steals the mouse events. \li mouseDoubleClickEvent() is called when the user double-clicks in the widget. If the user double-clicks, the widget receives a mouse - press event, a mouse release event and finally this event instead - of a second mouse press event. (Some mouse move events may also be + press event, a mouse release event, (a mouse click event,) a second + mouse press, this event and finally a second mouse release event. + (Some mouse move events may also be received if the mouse is not held steady during this operation.) It is \e{not possible} to distinguish a click from a double-click until the second click arrives. (This is one reason why most GUI -- cgit v1.2.3