summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-02-16 12:28:11 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-02-17 18:02:41 (GMT)
commit5119ae6d364a5ac738894d0e60131f21eaf403f2 (patch)
tree15011a5063609fb8c5de9257b5cf9bd1138a92ed /src/corelib/global
parentd69069eaa0b17ad02ef6604672ef9ee21eb53928 (diff)
downloadQt-5119ae6d364a5ac738894d0e60131f21eaf403f2.zip
Qt-5119ae6d364a5ac738894d0e60131f21eaf403f2.tar.gz
Qt-5119ae6d364a5ac738894d0e60131f21eaf403f2.tar.bz2
Added a new flag to fine-tune gesture propagation policy
When a graphicsobject subscribes to a gesture using the IgnoredGesturesPropagateToParent flag, normal propagation rules do not apply to the gesture, and instead all gestures of the given type that are started over the item will propagate to parent items only. Task-number: QTBUG-7400 Reviewed-by: Andreas
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qnamespace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 35ff8e7..6ee8ae9 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -1725,7 +1725,8 @@ public:
enum GestureFlag
{
DontStartGestureOnChildren = 0x01,
- ReceivePartialGestures = 0x02
+ ReceivePartialGestures = 0x02,
+ IgnoredGesturesPropagateToParent = 0x04
};
Q_DECLARE_FLAGS(GestureFlags, GestureFlag)