summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-16 13:56:24 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 14:51:34 (GMT)
commitd392c3073c10d053ffcd5d64d4f9d89a971fcb2d (patch)
treeb0bc9f3b46a3b76051d45b72e984c177f17bb66d /src/gui/kernel/qwidget.cpp
parentd8e4d20f3d225a3c29168d7a9440f2efc129ea8e (diff)
downloadQt-d392c3073c10d053ffcd5d64d4f9d89a971fcb2d.zip
Qt-d392c3073c10d053ffcd5d64d4f9d89a971fcb2d.tar.gz
Qt-d392c3073c10d053ffcd5d64d4f9d89a971fcb2d.tar.bz2
Extended the gesture documentation.
Also made some small fixes that noticed while was writing a doc.
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 2f794f4..d37f360 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -11031,8 +11031,9 @@ QWindowSurface *QWidget::windowSurface() const
Subscribes the widget to the specified \a gesture type.
Returns the id of the gesture.
-*/
+ \sa grabGesture(), releaseGesture(), setGestureEnabled()
+*/
int QWidget::grabGesture(const QString &gesture)
{
Q_D(QWidget);
@@ -11053,16 +11054,19 @@ int QWidgetPrivate::grabGesture(int id)
Subscribes the widget to the specified \a gesture type.
Returns the id of the gesture.
-*/
+ \sa grabGesture(), releaseGesture(), setGestureEnabled()
+*/
int QWidget::grabGesture(Qt::GestureType gesture)
{
return grabGesture(qt_getStandardGestureTypeName(gesture));
}
/*!
- Unsubscribes the widget from a gesture, which is specified by its
- \a id.
+ Unsubscribes the widget from a gesture, which is specified by the
+ \a gestureId.
+
+ \sa grabGesture(),setGestureEnabled()
*/
void QWidget::releaseGesture(int gestureId)
{
@@ -11075,6 +11079,14 @@ void QWidget::releaseGesture(int gestureId)
}
}
+/*!
+ If \a enable is true, the gesture with the given \a gestureId is
+ enabled; otherwise the gesture is disabled.
+
+ The id of the gesture is returned by the grabGesture().
+
+ \sa grabGesture(), releaseGesture()
+*/
void setGestureEnabled(int gestureId, bool enable)
{
//###