summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qnamespace.qdoc
diff options
context:
space:
mode:
authorRick Stockton <rickstockton@reno-computerhelp.com>2014-01-19 10:44:31 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-27 23:55:12 +0100
commit9063edef796ad10eb9ac2229627f36d60168f0e2 (patch)
treeb52ad219afc1770c890ea5474ce5afdeb7b6016d /src/corelib/global/qnamespace.qdoc
parentb7de9e7353a0caccceb309c03343e80dbe117dbb (diff)
If DblClick, do not deliver 'duplicated' MouseButtonPress
QWidgetWIndow: In Qt4, when Qt created a MouseButtonDblClick event, Qt would consume the causing MouseButtonPress. It would send only the derived dblclick event to widget windows and their children. This change makes Qt5.3 and higher emulate Qt4 delivery of double click-related events to widget windows and their children. QML objects (e.g. mousearea) continue to receive the second MouseButtonPress. [ChangeLog][QtGui][QWidget] MouseButtonDblClick: Do not send the 2nd MouseButtonPress event to Widgets. Restore Qt4 behavior in sequence of mouse events delivered to widget windows and their children. Task-number: QTBUG-25831 Change-Id: Iff0f9c592bceacb2ca844d30f8180081e136a889 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/corelib/global/qnamespace.qdoc')
-rw-r--r--src/corelib/global/qnamespace.qdoc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc
index 851b6609ea..f05cd0fd7e 100644
--- a/src/corelib/global/qnamespace.qdoc
+++ b/src/corelib/global/qnamespace.qdoc
@@ -2917,3 +2917,16 @@
\sa Qt::AA_SynthesizeMouseForUnhandledTouchEvents
*/
+
+/*!
+ \enum Qt::MouseEventFlag
+ \since 5.3
+
+ This enum provides additional information concerning a QMouseEvent.
+
+ \value MouseEventCreatedDoubleClick Indicates that Qt has created a
+ MouseButtonDblClick event from this event. The flag is set in the causing
+ MouseButtonPress, and not in the resulting MouseButtonDblCLick.
+
+ \omitvalue MouseEventFlagMask
+*/