summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-12 10:20:00 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-12 12:27:15 (GMT)
commitdf7155db6142e959db76a65cb47cae7f0338d538 (patch)
tree97e774998ee2c9b4ec78c22aaa14034c01597066 /src/corelib
parentc214bde28cc346967471023a8046fd3866407277 (diff)
downloadQt-df7155db6142e959db76a65cb47cae7f0338d538.zip
Qt-df7155db6142e959db76a65cb47cae7f0338d538.tar.gz
Qt-df7155db6142e959db76a65cb47cae7f0338d538.tar.bz2
Added documentation for the Gesture API.
Reviewed-by: trustme
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/global/qnamespace.qdoc41
1 files changed, 40 insertions, 1 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc
index 385edad..5956677 100644
--- a/src/corelib/global/qnamespace.qdoc
+++ b/src/corelib/global/qnamespace.qdoc
@@ -2796,15 +2796,54 @@
This enum type describes the state of a gesture.
- \value NoGesture Initial state
\value GestureStarted A continuous gesture has started.
\value GestureUpdated A gesture continues.
\value GestureFinished A gesture has finished.
+ \value GestureCanceled A gesture was canceled.
+ \omitvalue NoGesture
\sa QGesture
*/
/*!
+ \enum Qt::GestureType
+ \since 4.6
+
+ This enum type describes the standard gestures.
+
+ \value TapGesture A Tap gesture.
+ \value TapAndHoldGesture A Tap-And-Hold (Long-Tap) gesture.
+ \value PanGesture A Pan gesture.
+ \value PinchGesture A Pinch gesture.
+ \value SwipeGesture A Swipe gesture.
+ \value CustomGesture User-defined gesture id.
+ \value LastGestureType Last user gesture id
+
+ User-defined gestures are registered with
+ QApplication::registerGestureRecognizer which generated a custom gesture id
+ within range between CustomGesture and LastGestureType.
+
+ \sa QGesture, QWidget::grabGesture()
+*/
+
+/*!
+ \enum Qt::GestureContext
+ \since 4.6
+
+ This enum type describes the context of a gesture.
+
+ For a QGesture to trigger, the gesture recognizer should filter events for
+ a widget tree. This enum describes for which widget the gesture recognizer
+ should filter events:
+
+ \value WidgetGesture Gestures can only start over the widget itself.
+ \value WidgetWithChildrenGesture Gestures can start on the widget or over
+ any of its children.
+
+ \sa QWidget::grabGesture()
+*/
+
+/*!
\enum Qt::NavigationMode
\since 4.6