summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager_p.h
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2009-10-27 14:31:16 (GMT)
committerThomas Zander <thomas.zander@trolltech.com>2009-10-28 11:37:04 (GMT)
commit4470801f73b86d3ee06a866fbbdafcaeb9f294a6 (patch)
tree0b587d391267b55b369c7c7439a7033bab087918 /src/gui/kernel/qgesturemanager_p.h
parent9a9cd7765bfe879b53488fe18bba75425e4c5c61 (diff)
downloadQt-4470801f73b86d3ee06a866fbbdafcaeb9f294a6.zip
Qt-4470801f73b86d3ee06a866fbbdafcaeb9f294a6.tar.gz
Qt-4470801f73b86d3ee06a866fbbdafcaeb9f294a6.tar.bz2
Introduce QGesture::GestureCancelPolicy, a way to auto-cancel gestures
On accepting one gesture Qt can automatically cancel other gestures that belong to other targets. The policy is normally set to not cancel any other gestures and can be set to cancel all active gestures in the context. For example for all child widgets. Reviewed-By: Denis Dzyubenko
Diffstat (limited to 'src/gui/kernel/qgesturemanager_p.h')
-rw-r--r--src/gui/kernel/qgesturemanager_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesturemanager_p.h b/src/gui/kernel/qgesturemanager_p.h
index 96c2fb7..e6a1d50 100644
--- a/src/gui/kernel/qgesturemanager_p.h
+++ b/src/gui/kernel/qgesturemanager_p.h
@@ -135,6 +135,8 @@ private:
void getGestureTargets(const QSet<QGesture*> &gestures,
QMap<QWidget *, QList<QGesture *> > *conflicts,
QMap<QWidget *, QList<QGesture *> > *normal);
+
+ void cancelGesturesForChildren(QGesture *originatingGesture);
};
QT_END_NAMESPACE